Comments (6)
Looks like you have a list of nothing?
"ofType": {
"kind": "LIST",
"name": null
}
from elm-graphql.
It looks like the GraphQL schema is returning an invalid response.
The GraphQL Spec describes it here https://spec.graphql.org/draft/#sec-The-__Type-Type.Non-Null
It says that for NON_NULL
types:
- kind must return __TypeKind.NON_NULL.
ofType
must return a type of any kind exceptNon-Null
.- All other fields must return null.
(Emphasis added to relevant section). So it looks like it's a bug with the library or server-side framework.
from elm-graphql.
ahhhh
ok, I see it now. yep, the server lib shouldn't allow that
from elm-graphql.
ok, I see it now. yep, the server lib shouldn't allow that
Right, yeah it's just an extra type wrapper that doesn't add any meaning, which is why the GraphQL Spec disallows it. Let me know what the root turns out to be and what you find, I'm curious whether it's from a user-defined double-non-null, or just the server framework (or a plugin) adding the double non-null.
from elm-graphql.
the double non-null was my own code. But now that I've fixed that, I think the
"ofType": {
"kind": "LIST",
"name": null
}
is a bug in the server lib. if i remove the non_null decorators, it works
from elm-graphql.
Gotcha, thanks for the info! It might be nice to improve the error message in this particular case, too. Something like:
I found a double non-null. This should probably be a single non-null, maybe check if your types have a redundant non-null somewhere? See https://spec.graphql.org/June2018/#sec-Type-Kinds.Non-Null
from elm-graphql.
Related Issues (20)
- Enhancement - Add support for Dgraph HOT 1
- Include an exhaustive query for each type HOT 3
- elm-graphql generation fails if there are no columns selected (Hasura) HOT 6
- Add operationName to mutation request body HOT 1
- Enum with underscore as a leading character, changed after generating elm code. HOT 1
- Scalar decoder fails when the field contains an object. HOT 1
- Scalars should not be encoded as json in mutations HOT 3
- Enforce nonempty list in required list arguments HOT 3
- Selecting implementation attributes from interfaces HOT 2
- Corrupt package data for 5.0.5? HOT 1
- Requesting feedback on the following changes to the serializeChildren function regarding field hashing HOT 2
- Can not find ScalarCodecs HOT 1
- Feature request: Convenience functions for primitive comparisons HOT 3
- Idea: serialize invalid JSON Input Values as arguments
- Missing fragment in Interface `Fragments` type HOT 1
- Idea: include deprecation warnings into the generated code as comments HOT 1
- Building large queries takes a long time and pauses the UI HOT 2
- Encode function for enums is missing HOT 1
- Generate input object helpers 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 elm-graphql.