CollectionRef

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

Extends

  • BaseExpression

Constructors

Constructor

ts
new CollectionRef(
   collection, 
   alias, 
   bindingId?): CollectionRef;
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

ts
BaseExpression.constructor
BaseExpression.constructor

Properties

__returnType

ts
readonly __returnType: any;
readonly __returnType: any;

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

Internal

  • Type brand for TypeScript inference

Inherited from

ts
BaseExpression.__returnType
BaseExpression.__returnType

alias

ts
alias: string;
alias: string;

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


collection

ts
collection: CollectionImpl;
collection: CollectionImpl;

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


type

ts
type: "collectionRef";
type: "collectionRef";

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

Overrides

ts
BaseExpression.type
BaseExpression.type

Accessors

bindingId

Get Signature

ts
get bindingId(): string;
get bindingId(): string;

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

Returns

string


sourceId

Get Signature

ts
get sourceId(): string;
get sourceId(): string;

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

Opaque runtime identity; aliases are lexical names only.

Returns

string