Skip to content

Commit 816f67c

Browse files
committed
update schema printer
1 parent 0a72f1b commit 816f67c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphql/utils/schema_printer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
GraphQLScalarType, GraphQLUnionType)
55
from ..type.directives import DEFAULT_DEPRECATION_REASON
66
from .ast_from_value import ast_from_value
7+
from ..utils.undefined import UndefinedDefaultValue
78

89

910
def print_schema(schema):
@@ -153,7 +154,7 @@ def _print_args(field_or_directives):
153154

154155

155156
def _print_input_value(name, arg):
156-
if arg.default_value is not None:
157+
if arg.default_value is not UndefinedDefaultValue:
157158
default_value = ' = ' + print_ast(ast_from_value(arg.default_value, arg.type))
158159
else:
159160
default_value = ''

0 commit comments

Comments
 (0)