Skip to content

Querying a field/argument which doesn't exist fails the whole query rather than just that branch #329

Open
@dantb

Description

For example misspelling one of the top-level fields produces something like below, without any data, despite other fields being requested independently.

{
  "errors": [
    {
      "message": "Unknown field 'myFieldd' in select"
    }
  ]
}

Unsure whether this is expected GraphQL behaviour or we should be more permissive. Perhaps it could be configurable? If it is possible I'm happy to be pointed to the relevant part of the code to give it a go 😄

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions