Skip to main content

Source

还没翻译译自英文(tanstack.com)本页 7 段都还没译

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]: 
  | QueryBuilder<any>
  | CollectionImpl<any, any, any, any, any>
| CollectionOptionsIdentity<any, any, any, any, any>