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 572fdca commit 9c3f9e6Copy full SHA for 9c3f9e6
graphql/core/utils/schema_printer.py
@@ -56,10 +56,10 @@ def _print_type(type):
56
return _print_union(type)
57
58
elif isinstance(type, GraphQLEnumType):
59
- return _print_enum(GraphQLEnumType)
+ return _print_enum(type)
60
61
assert isinstance(type, GraphQLInputObjectType)
62
- return _print_input_object(GraphQLInputObjectType)
+ return _print_input_object(type)
63
64
65
def _print_scalar(type):
@@ -95,7 +95,7 @@ def _print_enum(type):
95
'enum {} {{\n'
96
'{}\n'
97
'}}'
98
- ).format(type.name, '\n'.join(' ' + v.name for v in type.get_values()))
+ ).format(type.name, '\n'.join(' ' + v.name for v in type.get_values().values()))
99
100
101
def _print_input_object(type):
0 commit comments