Comments (7)
I agree. It would be nice to support graphql-js's SchemaTypes - definitely something I would like to introduce in future.
from modelizr.
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.
@julienvincent can you think of a case when you wouldn't want the client to be 'glued' to the server.
from modelizr.
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.
Authorization is a server-side concern.
What is the problem with having a full type specification when you only need 80%.
from modelizr.
@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.
@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)
- normalizr for mutations? HOT 1
- Create next.js example HOT 1
- Unable to use the normalize function independently HOT 2
- buildParameters problem HOT 3
- Any feedback after one year :) HOT 2
- Additional/Alternative Query Syntax Proposal HOT 11
- Generalise Queries HOT 3
- Using arrayOf, valuesOf and union in a type-defined model. HOT 1
- Multiple root models of the same type in a query generate conflicting entity ids
- Generate Modelizr code via GraphQL introspection
- Exclude faker.js and chance.js
- How to improve working with models HOT 1
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 modelizr.