graphql-playground icon indicating copy to clipboard operation
graphql-playground copied to clipboard

select named query option not showing up

Open mfulton26 opened this issue 2 years ago • 1 comments

using the example code here I am no longer seeing a list show up when I have multiple queries defined in a single tab and I click the big "play" button

whatever query is the first in the document is what gets executed 😞

I'm fairly confident this worked in at least 1.7.13 but doesn't appear to work anymore in 1.7.28 (which is the latest on NPM but I can't tell if that is the expected latest version or not)

example "query" document (contains 2 named queries):

query a {
  foo
}

query b {
  bar
}

I want to be able to click the Play button again and get a list containing "a" and "b" (or whatever my named operations are) and then click an operation by name so that I can have similar operations grouped together in a query and execute whichever I need with a single extra click

thank you

mfulton26 avatar Apr 15 '22 22:04 mfulton26

I can confirm having the same issue on 1.7.27. The list of queries on play button appears only after making some edit to the queries on the left. Before editing anything it executes the first query only.

robertjk avatar Feb 23 '23 12:02 robertjk