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:86

Extends

  • BaseExpression

Constructors

Constructor

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

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

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:83

Internal

  • Type brand for TypeScript inference

Inherited from

BaseExpression.__returnType

alias

alias: string;

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


collection

collection: CollectionImpl;

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


type

type: "collectionRef";

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

Overrides

BaseExpression.type

Accessors

bindingId

Get Signature

get bindingId(): string;

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

Returns

string


sourceId

Get Signature

get sourceId(): string;

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

Opaque runtime identity; aliases are lexical names only.

Returns

string