From 98e10f0db834d2898ed9652f3e052feaea4c2de1 Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Thu, 27 Feb 2020 20:51:59 +0000 Subject: [PATCH] Replace INVALID with Undefined (#1146) --- graphene/types/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, )