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

Source.md

28 lines661 Bytes

type Source = object;

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

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]: 
  | QueryBuilder<any>
  | CollectionImpl<any, any, {
}, StandardSchemaV1<unknown, unknown>, any>
| CollectionOptionsIdentity<any, any, any, any, any>