Source

Type Alias: Source

ts
type Source = object;
type Source = object;

Defined in: packages/db/src/query/builder/types.ts:75

Source - Input definition for query builder from() clause

Maps table aliases to either:

  • CollectionImpl: A database collection/table
  • QueryBuilder: A subquery that can be used as a table

Example: { users: usersCollection, orders: ordersCollection }

Index Signature

ts
[alias: string]: 
  | CollectionImpl<any, any, {
}, StandardSchemaV1<unknown, unknown>, any>
| QueryBuilder<Context>
[alias: string]: 
  | CollectionImpl<any, any, {
}, StandardSchemaV1<unknown, unknown>, any>
| QueryBuilder<Context>
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.