Docs

graphql_validation_failed

400 invalid_request. The document parses but asks for something the key's schema does not have: a field, an argument, a type or a missing variable.

View as Markdown
HTTP statustypeSurfaces
400invalid_requestGraphQL

What it means

The document parses but asks for something the key's schema does not have: a field, an argument, a type or a missing variable.

What to do

Use the names the message suggests; the schema only holds models this key can read.

On GraphQL

/api/graphql answers the same code inside errors[].extensions. The status depends on the Accept header you send (status codes):

application/jsongraphql-response+jsonWhen
200400an unknown field, a wrong argument type, a subscription anywhere in the document, an unnamed operation beside another. One error per problem, at most 20

See also