GraphQL icon indicating copy to clipboard operation
GraphQL copied to clipboard

Parsing arrays of ENUMs doesn't work

Open leoloso opened this issue 5 years ago • 0 comments

I have declared the type of an input to be [ENUM], hence I should be able to query it like this:

query {
  someField(input: [enumValue]) {
    ...
  }
}

However it doesn't work, I get the following error message:

{
  "errors": [
    {
      "message": "Can't parse argument",
      "location": {
        "line": ...,
        "column": ...      }
    }
  ]
}

Passing an ENUM value as an input works well, passing arrays of string works well, but passing arrays of ENUMs does not.

leoloso avatar May 07 '20 09:05 leoloso