Comments (3)
Links are useful. They can integrate well with the idea of the store.
However, I have been thinking on how to integrate meta
? Meta is supposed to be something per request
hence it doesn't help saving it to the store. What are the other options?
from ngrx-json-api.
I consider both of them just being more data. The only difference to actual attributes is, that they are not sent back to the server.
As such, I think there is no store logic necessary, they just have to be saved along with the attributes. Preferably in the format received from the server without any changes:
- meta
** x - attributes
** y - links
** z
I would just add those the the Document and Resource so that they are available in the api contract.
We use meta data for example to signal security/permission information. Depending on their values, use can or cannot do things (like post, delete, patch). As such we need to bind components to meta data as well next to the attributes.
from ngrx-json-api.
Already added
from ngrx-json-api.
Related Issues (20)
- reducer performance issues for API Success HOT 1
- Resource relationships HOT 2
- Angular 5 problems HOT 4
- API_GET_FAILED does not reset isLoading state
- document filtering and sorting HOT 1
- State does not return to `IN_SYNC` when patching resoruce HOT 5
- No url encoding - causes issues with special characters such as "[" HOT 1
- Support filter=value without path HOT 1
- Not an issue HOT 1
- Optionally add zone to pipes HOT 1
- NgrxJsonApiZoneService applies pending changes in reverse order HOT 2
- Add support of JSON:API Operations HOT 2
- Status of the project HOT 3
- Optional supports for sending changed attributes & relationships only in PATCH operation payload
- Add support for Atomic Operations Extension
- Remove package-lock.json HOT 1
- Send `meta` when creating/updating a resource
- Type mismatch in QueryParams interfaces HOT 1
- Angular 9 Support HOT 4
- Review README of the 9.0.x branch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngrx-json-api.