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

Source.md

27 lines630 Bytes

type Source = object;

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

Source - Input definition for query builder from() and unionAll() clauses

Maps table aliases to either:

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

Example: { users: usersCollection }

Index Signature

[alias: string]: 
  | CollectionOptionsIdentity<any, any, any, any, any>
  | QueryBuilder<any>
| CollectionImpl<any, any, any, any, any>