We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841bd26 commit 1202476Copy full SHA for 1202476
packages/graphql-playground-react/src/components/Playground/util/getQueryTypes.ts
@@ -9,6 +9,10 @@ export const getQueryTypes = (ast): QueryTypes => {
9
10
if (ast && ast.definitions) {
11
ast.definitions.forEach(definition => {
12
+ if (!firstOperationName) {
13
+ firstOperationName = definition.name && definition.name.value
14
+ }
15
+
16
if (!firstOperationName) {
17
firstOperationName =
18
definition.selectionSet &&
0 commit comments