Store class defines a local data store, and provides methods to
retrieve data from the API.
The 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.
Get all loaded records of a specific type.
Make a request to the API to find record(s) of a specific type.
Get a record from the store by the value of a model attribute.
The resource type.
The name of the method on the model.
The value of the model attribute.
Get a record from the store by ID.
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.
Remove the given model from the store.
Generated using TypeDoc version 0.22.10