Replace INVALID with Undefined (#1146)

This commit is contained in:
Jonathan Kim 2020-02-27 20:51:59 +00:00 committed by GitHub
parent ac98be7836
commit 98e10f0db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
)