diff --git a/graphene/types/schema.py b/graphene/types/schema.py index 3249c6f6..79b5315b 100644 --- a/graphene/types/schema.py +++ b/graphene/types/schema.py @@ -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, )