src/app/data-dgql/query.ts
A cacheable node with no parameters.
See DataQuery for more information, and DataService to obtain a DataNode. Nodes are identified by a NodeId.
Properties |
Methods |
Accessors |
id |
Type : I
|
Inherited from
DataQuery
|
Defined in
DataQuery:48
|
The ID of this data. |
interactive |
Default value : false
|
Inherited from
DataQuery
|
Defined in
DataQuery:137
|
If true, will prolong debounce time a bit. |
loading |
Default value : false
|
Inherited from
DataQuery
|
Defined in
DataQuery:49
|
loadIfNeeded |
loadIfNeeded()
|
Inherited from
DataQuery
|
Defined in
DataQuery:385
|
Returns :
void
|
dataAsPromise |
dataAsPromise()
|
Inherited from
DataQuery
|
Defined in
DataQuery:171
|
Returns the data as a promise, without having to create a subscription. If cached data is available, this will return the data immediately; otherwise, this will load the data with an API request. Example
Returns :
Promise<T>
|
hydrateRaw | ||||||
hydrateRaw(preparedData: Promise
|
||||||
Inherited from
DataQuery
|
||||||
Defined in
DataQuery:231
|
||||||
Use when data has not yet been loaded but is available from elsewhere.
Parameters :
Returns :
void
|
invalidate |
invalidate()
|
Inherited from
DataQuery
|
Defined in
DataQuery:264
|
Deletes current data.
Returns :
void
|
load |
load()
|
Inherited from
DataQuery
|
Defined in
DataQuery:222
|
Loads data.
Returns :
void
|
loadDebounced | ||||||
loadDebounced(interactive)
|
||||||
Inherited from
DataQuery
|
||||||
Defined in
DataQuery:250
|
||||||
Loads data after a short delay. Will debounce.
Parameters :
Returns :
void
|
subscribeLazy | ||||||||
subscribeLazy(...args: any[])
|
||||||||
Inherited from
DataQuery
|
||||||||
Defined in
DataQuery:295
|
||||||||
Will subscribe to the data, but not cause a reload unless there is no data.
Parameters :
Returns :
Subscription
|
params | ||||
setparams(p)
|
||||
Defined in src/app/data-dgql/query.ts:381
|
||||
Parameters :
Returns :
void
|