Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing arrays of ENUMs doesn't work #247

Open
leoloso opened this issue May 7, 2020 · 0 comments
Open

Parsing arrays of ENUMs doesn't work #247

leoloso opened this issue May 7, 2020 · 0 comments

Comments

@leoloso
Copy link

leoloso commented May 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant