Skip to content

Support directives on VARIABLE_DEFINITION #277

@lozlow

Description

@lozlow

When running the ppx on this mutation

module AddEntry = %graphql(`
  mutation addEntry($body: String! @encrypted) {
    insert_entries_one(object: { body: $body}) {
      id
      body
    }
  }
`)

I get

  3 ┆
  4 ┆ module AddEntry = %graphql(`
  5 ┆   mutation addEntry($body: String! @encrypted) {
  6 ┆     insert_entries_one(object: { body: $body}) {
  7 ┆       id

  Unexpected token @

This is supported by the graphql spec: graphql/graphql-spec#510

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