Skip to content

Commit 246b6af

Browse files
author
Jannis Pohlmann
committed
ast: Fix finding operation definitions for specific operation names
1 parent e65582d commit 246b6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func operationDefinitionsWithOperation(
1212
for _, node := range doc.Definitions {
1313
if node.GetKind() == "OperationDefinition" {
1414
if def, ok := node.(*ast.OperationDefinition); ok {
15-
if def.Name.Value == op {
15+
if def.Operation == op {
1616
defs = append(defs, def)
1717
}
1818
}

0 commit comments

Comments
 (0)