src/app/data-dgql/index.ts
The data service provides access to the backend API. It provides automatic caching of data to reducing unnecessary requests, and a mutation API that automatically propagates updates to all observers of affected data.
To get data, use #getNode and #getList. To mutate data, use #mutations.
Properties |
Methods |
constructor(queries: QueriesService)
|
||||||
Defined in src/app/data-dgql/index.ts:30
|
||||||
Parameters :
|
getList | ||||||
getList(id: ListId)
|
||||||
Defined in src/app/data-dgql/index.ts:71
|
||||||
Type parameters :
|
||||||
Parameters :
Returns :
DataList<T, F>
|
getNode | ||||||
getNode(id: NodeId)
|
||||||
Defined in src/app/data-dgql/index.ts:38
|
||||||
Type parameters :
|
||||||
Parameters :
Returns :
DataNode<T>
|
invalidateLists | ||||||
invalidateLists(selector: ListId | ListType)
|
||||||
Defined in src/app/data-dgql/index.ts:43
|
||||||
Invalidates all lists with the given id or type.
Parameters :
Returns :
void
|
mutations |
Type : Mutations
|
Defined in src/app/data-dgql/index.ts:30
|
Data mutations. |