@@ -137,15 +137,15 @@ def extend_interface_type(type):
137
137
name = type .name ,
138
138
description = type .description ,
139
139
fields = lambda : extend_field_map (type ),
140
- resolve_type = raise_client_schema_execution_error ,
140
+ resolve_type = cannot_execute_client_schema ,
141
141
)
142
142
143
143
def extend_union_type (type ):
144
144
return GraphQLUnionType (
145
145
name = type .name ,
146
146
description = type .description ,
147
147
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 ,
149
149
)
150
150
151
151
def extend_implemented_interfaces (type ):
@@ -176,7 +176,7 @@ def extend_field_map(type):
176
176
description = field .description ,
177
177
deprecation_reason = field .deprecation_reason ,
178
178
args = {arg .name : arg for arg in field .args },
179
- resolver = raise_client_schema_execution_error ,
179
+ resolver = cannot_execute_client_schema ,
180
180
)
181
181
182
182
# If there are any extensions to the fields, apply those here.
@@ -194,7 +194,7 @@ def extend_field_map(type):
194
194
new_field_map [field_name ] = GraphQLField (
195
195
build_field_type (field .type ),
196
196
args = build_input_values (field .arguments ),
197
- resolver = raise_client_schema_execution_error ,
197
+ resolver = cannot_execute_client_schema ,
198
198
)
199
199
200
200
return new_field_map
@@ -230,14 +230,14 @@ def build_interface_type(type_ast):
230
230
return GraphQLInterfaceType (
231
231
type_ast .name .value ,
232
232
fields = lambda : build_field_map (type_ast ),
233
- resolve_type = raise_client_schema_execution_error ,
233
+ resolve_type = cannot_execute_client_schema ,
234
234
)
235
235
236
236
def build_union_type (type_ast ):
237
237
return GraphQLUnionType (
238
238
type_ast .name .value ,
239
239
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 ,
241
241
)
242
242
243
243
def build_scalar_type (type_ast ):
@@ -273,7 +273,7 @@ def build_field_map(type_ast):
273
273
field .name .value : GraphQLField (
274
274
build_field_type (field .type ),
275
275
args = build_input_values (field .arguments ),
276
- resolver = raise_client_schema_execution_error ,
276
+ resolver = cannot_execute_client_schema ,
277
277
) for field in type_ast .fields
278
278
}
279
279
@@ -340,5 +340,5 @@ def build_field_type(type_ast):
340
340
)
341
341
342
342
343
- def raise_client_schema_execution_error (* args , ** kwargs ):
343
+ def cannot_execute_client_schema (* args , ** kwargs ):
344
344
raise Exception ('Client Schema cannot be used for execution.' )
0 commit comments