Skip to content

Disable suggestion "Remove Did you mean..." #97

@ckristhoff

Description

@ckristhoff

Hi
When you post an query with syntax errors graphql/graphene makes suggestions to you. By example, sending "i", it suggest "ID".

query{
  users{
        i
  }
}
{
  "errors": [
    {
      "message": "Cannot query field \"i\" on type \"User\". Did you mean \"id\"?",
      "locations": [
        {
          "line": 5,
          "column": 9
        }
      ]
    }
  ]
}

Can suggestions be disabled?

More info:
Syntax analysis who add suggestions is executed before the middlewares.
Apparently suggestions are made by ScalarLeafsRule class.

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