mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 09:36:44 +03:00
Replace INVALID with Undefined (#1146)
This commit is contained in:
parent
ac98be7836
commit
98e10f0db8
|
@ -22,7 +22,7 @@ from graphql import (
|
|||
GraphQLObjectType,
|
||||
GraphQLSchema,
|
||||
GraphQLString,
|
||||
INVALID,
|
||||
Undefined,
|
||||
)
|
||||
|
||||
from ..utils.str_converters import to_camel_case
|
||||
|
@ -357,7 +357,7 @@ class GrapheneGraphQLSchema(GraphQLSchema):
|
|||
arg_type,
|
||||
out_name=arg_name,
|
||||
description=arg.description,
|
||||
default_value=INVALID
|
||||
default_value=Undefined
|
||||
if isinstance(arg.type, NonNull)
|
||||
else arg.default_value,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user