Use argument's default value regardless if the input field is required

This commit is contained in:
Minh Tu Le 2021-04-17 15:30:08 -07:00
parent f622f1f53c
commit a2872f2a92
No known key found for this signature in database
GPG Key ID: DF571BC8E66052A1

View File

@ -313,9 +313,7 @@ class TypeMap(dict):
arg_type,
out_name=arg_name,
description=arg.description,
default_value=Undefined
if isinstance(arg.type, NonNull)
else arg.default_value,
default_value=arg.default_value,
)
subscribe = field.wrap_subscribe(
self.get_function_for_type(