Replace INVALID with Undefined

This commit is contained in:
Jonathan Kim 2020-02-27 19:20:18 +00:00
parent ac98be7836
commit a066de9d79

View File

@ -22,7 +22,7 @@ from graphql import (
GraphQLObjectType, GraphQLObjectType,
GraphQLSchema, GraphQLSchema,
GraphQLString, GraphQLString,
INVALID, Undefined,
) )
from ..utils.str_converters import to_camel_case from ..utils.str_converters import to_camel_case
@ -357,7 +357,7 @@ class GrapheneGraphQLSchema(GraphQLSchema):
arg_type, arg_type,
out_name=arg_name, out_name=arg_name,
description=arg.description, description=arg.description,
default_value=INVALID default_value=Undefined
if isinstance(arg.type, NonNull) if isinstance(arg.type, NonNull)
else arg.default_value, else arg.default_value,
) )