Giter Site home page Giter Site logo

Meta and links support about ngrx-json-api HOT 3 CLOSED

remmeier avatar remmeier commented on August 26, 2024 1
Meta and links support

from ngrx-json-api.

Comments (3)

abdulhaq-e avatar abdulhaq-e commented on August 26, 2024

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.

remmeier avatar remmeier commented on August 26, 2024

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.

abdulhaq-e avatar abdulhaq-e commented on August 26, 2024

Already added

from ngrx-json-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.