graphql / graphql-playground

🎮 GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)
MIT License
8.73k stars 731 forks source link

select named query option not showing up #1384

Open mfulton26 opened 2 years ago

mfulton26 commented 2 years ago

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

robertjk commented 1 year ago

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.