@@ -137,15 +137,15 @@ def extend_interface_type(type):
137137 name = type .name ,
138138 description = type .description ,
139139 fields = lambda : extend_field_map (type ),
140- resolve_type = raise_client_schema_execution_error ,
140+ resolve_type = cannot_execute_client_schema ,
141141 )
142142
143143 def extend_union_type (type ):
144144 return GraphQLUnionType (
145145 name = type .name ,
146146 description = type .description ,
147147 types = list (map (get_type_from_def , type .get_possible_types ())),
148- resolve_type = raise_client_schema_execution_error ,
148+ resolve_type = cannot_execute_client_schema ,
149149 )
150150
151151 def extend_implemented_interfaces (type ):
@@ -176,7 +176,7 @@ def extend_field_map(type):
176176 description = field .description ,
177177 deprecation_reason = field .deprecation_reason ,
178178 args = {arg .name : arg for arg in field .args },
179- resolver = raise_client_schema_execution_error ,
179+ resolver = cannot_execute_client_schema ,
180180 )
181181
182182 # If there are any extensions to the fields, apply those here.
@@ -194,7 +194,7 @@ def extend_field_map(type):
194194 new_field_map [field_name ] = GraphQLField (
195195 build_field_type (field .type ),
196196 args = build_input_values (field .arguments ),
197- resolver = raise_client_schema_execution_error ,
197+ resolver = cannot_execute_client_schema ,
198198 )
199199
200200 return new_field_map
@@ -230,14 +230,14 @@ def build_interface_type(type_ast):
230230 return GraphQLInterfaceType (
231231 type_ast .name .value ,
232232 fields = lambda : build_field_map (type_ast ),
233- resolve_type = raise_client_schema_execution_error ,
233+ resolve_type = cannot_execute_client_schema ,
234234 )
235235
236236 def build_union_type (type_ast ):
237237 return GraphQLUnionType (
238238 type_ast .name .value ,
239239 types = list (map (get_type_from_AST , type_ast .types )),
240- resolve_type = raise_client_schema_execution_error ,
240+ resolve_type = cannot_execute_client_schema ,
241241 )
242242
243243 def build_scalar_type (type_ast ):
@@ -273,7 +273,7 @@ def build_field_map(type_ast):
273273 field .name .value : GraphQLField (
274274 build_field_type (field .type ),
275275 args = build_input_values (field .arguments ),
276- resolver = raise_client_schema_execution_error ,
276+ resolver = cannot_execute_client_schema ,
277277 ) for field in type_ast .fields
278278 }
279279
@@ -340,5 +340,5 @@ def build_field_type(type_ast):
340340 )
341341
342342
343- def raise_client_schema_execution_error (* args , ** kwargs ):
343+ def cannot_execute_client_schema (* args , ** kwargs ):
344344 raise Exception ('Client Schema cannot be used for execution.' )
0 commit comments