ProtecteddataThe local data store. A tree of resource types to IDs, such that accessing data[type][id] will return the model for that type/ID.
The model registry. A map of resource types to the model class that should be used to represent resources of that type.
Make a request to the API to find record(s) of a specific type.
Optionalparams: ApiQueryParamsSingleMake a request to the API to find record(s) of a specific type.
Optionalparams: ApiQueryParamsPluralMake a request to the API to find record(s) of a specific type.
Optionalparams: ApiQueryParamsSingleOptionaloptions: ApiQueryRequestOptions<ApiPayloadSingle>Make a request to the API to find record(s) of a specific type.
Optionalparams: ApiQueryParamsPluralOptionaloptions: ApiQueryRequestOptions<ApiPayloadPlural>Create a model to represent a resource object (or update an existing one), and push it into the store.
The resource object
The model, or null if no model class has been registered for this resource type.
Create a model to represent a resource object (or update an existing one), and push it into the store.
The resource object
The model, or null if no model class has been registered for this resource type.
Push resources contained within an API payload into the store.
The model(s) representing the resource(s) contained within the 'data' key of the payload.
Push resources contained within an API payload into the store.
The model(s) representing the resource(s) contained within the 'data' key of the payload.
The
Storeclass defines a local data store, and provides methods to retrieve data from the API.