json-api-store
json-api-store copied to clipboard
An isomorphic JavaScript library that acts as an in memory data store for JSON API data.
Hi there, I'm needing an easy practical way to get the "meta" from reponse. The real purpose is doing pagination ops, but I'm working on some projects that can't wait...
The `id` and `type` of a resource object are merged into the `attributes`. If `attributes` contains a property `type` or `id`, the resource object's identifiers are overwritten, and can no...
Is there a way to register a custom header to a method or to an adapter ? If I write my own adapter, it will probably do the trick. But...
``` javascript var store = new Store(); store.define("products", { commentCount: Store.meta("total-comments"), comments: Store.hasMany() }); store.define("comments", {}); store.add({ type: "products", id: "1", meta: { "total-comments": 1 }, relationships: { comments: [...
## Priority High _(for me anyways)_ ## What Changed & Why The official JSON API Spec has a bunch of examples that suggest users can use nested page parameters. If...
When using this module with typescript transpiler (tsc) I see this error: ``` error TS2307: Cannot find module 'json-api-store'. ``` Apparently it needs a json-api-store.d.ts file with type definitions that...
Hello, I have a problem, I created page and added button for loading and refresh my orders, but this is did not work. If some body close order between my...
I've created a fetch adaptor for this project here. I'll be adding tests & docs soon, but I thought it might be useful for someone in the short term. https://github.com/BBB/json-api-store-fetch-adapter
Currently mapping for a returned resource (and it's relationships, etc) is handled explicitly by schema definition. Code paths need to be added to allow for dynamic data type returned (array...