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

CollectionRef.md

137 lines2.1 KB

Defined in: packages/db/src/query/ir.ts:91

Extends

  • BaseExpression

Constructors

Constructor

new CollectionRef(
   collection, 
   alias, 
   bindingId?): CollectionRef;

Defined in: packages/db/src/query/ir.ts:98

Parameters

collection

CollectionImpl<any, string | number, any, any, any>

alias

string

bindingId?

string

Returns

CollectionRef

Overrides

BaseExpression.constructor

Properties

__returnType

readonly __returnType: any;

Defined in: packages/db/src/query/ir.ts:88

Internal

  • Type brand for TypeScript inference

Inherited from

BaseExpression.__returnType

alias

alias: string;

Defined in: packages/db/src/query/ir.ts:96


collection

collection: CollectionImpl;

Defined in: packages/db/src/query/ir.ts:95


type

type: "collectionRef";

Defined in: packages/db/src/query/ir.ts:92

Overrides

BaseExpression.type

Accessors

bindingId

Get Signature

get bindingId(): string;

Defined in: packages/db/src/query/ir.ts:114

Returns

string


sourceId

Get Signature

get sourceId(): string;

Defined in: packages/db/src/query/ir.ts:110

Opaque runtime identity; aliases are lexical names only.

Returns

string