Skip to content

Commit 453404c

Browse files
committed
Fixed subscription type getter in TypeInfo
1 parent 6c6d640 commit 453404c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphql/utils/type_info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def enter_OperationDefinition(self, node):
8585
definition_type = self._schema.get_query_type()
8686
elif node.operation == 'mutation':
8787
definition_type = self._schema.get_mutation_type()
88+
elif node.operation == 'subscription':
89+
definition_type = self._schema.get_subscription_type()
8890

8991
self._type_stack.append(definition_type)
9092

0 commit comments

Comments
 (0)