Constructors
constructor
- new Query<T>(model, collectionName, expression, options?): Query<T>
Parameters
- model: ChildModel<unknown>
- collectionName: string
- expression: any
Optional
options: any
Properties
collectionName
collectionName: string
context
created
created: boolean
expression
expression: any
extraSegments
extraSegments: string[]
fetchCount
fetchCount: number
fetchPromised
fetchPromised: any
hash
hash: string
idMap
idsSegments
idsSegments: string[]
model
options
options: any
segments
shareQuery
shareQuery: any
subscribeCount
subscribeCount: number
subscribePromised
subscribePromised: any
unfetchPromised
unfetchPromised: any
unsubscribePromised
unsubscribePromised: any
Methods
create
- create(): void
Returns void
destroy
- destroy(): void
Returns void
fetch
- fetch(cb?): this
Returns this
get
- get(): T[]
Returns T[]
getExtra
- getExtra<T>(): T
Returns T
getIds
- getIds(): string[]
Returns string[]
ref
- ref(from): RefList
refExtra
- refExtra(from, relPath?): ChildModel<unknown>
Parameters
- from: any
Optional
relPath: any
refIds
- refIds(from): ChildModel<unknown>
serialize
- serialize(): any[]
Returns any[]
subscribe
- subscribe(cb?): this
Returns this
unfetch
- unfetch(cb?): this
Returns this
unsubscribe
- unsubscribe(cb?): this
Returns this