OneGraph / graphiql-explorer

Explorer plugin for GraphiQL
MIT License
904 stars 97 forks source link

List of enums in a field argument, are created not as a list #66

Open leoloso opened 3 years ago

leoloso commented 3 years ago

I have a field myPosts with fieldArg status as a list of enums. The explorer shows a select to select the enum, that's cool, but when clicking on it, it adds the enum value directly to the query, and not within a list.

The query should be like this instead:

query MyQuery {
-  myPosts(status: publish) {
+  myPosts(status: [publish]) {
    id
  }
}
Screenshot 2021-04-08 at 4 04 25 PM