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 0a72f1b commit 816f67cCopy full SHA for 816f67c
graphql/utils/schema_printer.py
@@ -4,6 +4,7 @@
4
GraphQLScalarType, GraphQLUnionType)
5
from ..type.directives import DEFAULT_DEPRECATION_REASON
6
from .ast_from_value import ast_from_value
7
+from ..utils.undefined import UndefinedDefaultValue
8
9
10
def print_schema(schema):
@@ -153,7 +154,7 @@ def _print_args(field_or_directives):
153
154
155
156
def _print_input_value(name, arg):
- if arg.default_value is not None:
157
+ if arg.default_value is not UndefinedDefaultValue:
158
default_value = ' = ' + print_ast(ast_from_value(arg.default_value, arg.type))
159
else:
160
default_value = ''
0 commit comments