Skip to content

[v2] Anonymous operation definitions with variable definitions do not parse #165

@Yogu

Description

@Yogu

Affects 2.0.0-alpha-3.

query($id: ID!) {
  test(id: $id) {
    id
  }
}

This should be a valid GraphQL document, but generates the error <definition> expected, got 'query'. graphql-js parses this just fine. It looks fine in the antlr definition of graphql-java, but maybe it's a bug there anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions