Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

Source.md

29 lines640 Bytes

Type Alias: Source

type Source = object;

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

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

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