We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When calling the API, a server error is thrown when Item.effect is null.
Just send the following query:
{ set(id: "dp3") @locale(lang: "en") { id, name, cards { abilities { effect, name, type }, attacks { cost, damage, effect }, category, effect, energyType, evolveFrom, hp, id, image, item { effect, name }, legal { expanded, standard }, level, name, rarity, regulationMark, resistances { type, value }, retreat, stage, suffix, trainerType, types, variants { firstEdition, holo, normal, reverse, wPromo }, weaknesses { type, value } } } }
API serves a set.
API fails with the folowing payload:
{ "errors": [ { "message": "Cannot return null for non-nullable field Item.effect.", "locations": [ { "line": 20, "column": 14 } ], "path": [ "set", "cards", 82, "item", "effect" ] } ] }
https://www.apollographql.com/blog/using-nullability-in-graphql#what-happens-if-you-try-to-return-null-for-a-non-null-field
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Where are you having the issue
Is the issue affecting one of the two elements below ?
Description
When calling the API, a server error is thrown when Item.effect is null.
Just send the following query:
Expected behavior
API serves a set.
Current behavior
API fails with the folowing payload:
Context
https://www.apollographql.com/blog/using-nullability-in-graphql#what-happens-if-you-try-to-return-null-for-a-non-null-field
The text was updated successfully, but these errors were encountered: