Git Product home page Git Product logo

Comments (7)

julienvincent avatar julienvincent commented on June 14, 2024

I agree. It would be nice to support graphql-js's SchemaTypes - definitely something I would like to introduce in future.

from modelizr.

julienvincent avatar julienvincent commented on June 14, 2024

I've been thinking more about this, and I'm doubting the necessity of this. Modelizr is a client targeted library and in my opinion it should have models that are not glued to the server-side GraphQL schemas.

@jansenignacio Could you perhaps describe a use case that this could make sense?

from modelizr.

alexisvincent avatar alexisvincent commented on June 14, 2024

@julienvincent can you think of a case when you wouldn't want the client to be 'glued' to the server.

from modelizr.

julienvincent avatar julienvincent commented on June 14, 2024

Yes, most of the time the client does not want to / is not authorized to view all of the fields available on a schema.

from modelizr.

alexisvincent avatar alexisvincent commented on June 14, 2024

Authorization is a server-side concern.
What is the problem with having a full type specification when you only need 80%.

from modelizr.

jansenignacio avatar jansenignacio commented on June 14, 2024

@julienvincent after using GraphQL a bit more, I've also come to the same conclusion as you. The use case I had thought of is not really valid.

from modelizr.

julienvincent avatar julienvincent commented on June 14, 2024

@jansenignacio Thanks for your input - you might also be interested in looking at the rewrite for v1. Creating a model is now much less verbose and hopefully makes this library more user friendly.

from modelizr.

Related Issues (13)

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.