mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-16 19:12:21 +03:00
Use argument's default value regardless if the input field is required
This commit is contained in:
parent
f622f1f53c
commit
a2872f2a92
|
@ -313,9 +313,7 @@ class TypeMap(dict):
|
||||||
arg_type,
|
arg_type,
|
||||||
out_name=arg_name,
|
out_name=arg_name,
|
||||||
description=arg.description,
|
description=arg.description,
|
||||||
default_value=Undefined
|
default_value=arg.default_value,
|
||||||
if isinstance(arg.type, NonNull)
|
|
||||||
else arg.default_value,
|
|
||||||
)
|
)
|
||||||
subscribe = field.wrap_subscribe(
|
subscribe = field.wrap_subscribe(
|
||||||
self.get_function_for_type(
|
self.get_function_for_type(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user