@@ -324,9 +324,9 @@ def complete_abstract_value(exe_context, return_type, field_asts, info, result):
324
324
# Field type must be Object, Interface or Union and expect sub-selections.
325
325
if isinstance (return_type , (GraphQLInterfaceType , GraphQLUnionType )):
326
326
if return_type .resolve_type :
327
- runtime_type = return_type .resolve_type (result , exe_context . context_value , info )
327
+ runtime_type = return_type .resolve_type (result , info )
328
328
else :
329
- runtime_type = get_default_resolve_type_fn (result , exe_context . context_value , info , return_type )
329
+ runtime_type = get_default_resolve_type_fn (result , info , return_type )
330
330
331
331
if isinstance (runtime_type , string_types ):
332
332
runtime_type = info .schema .get_type (runtime_type )
@@ -353,7 +353,7 @@ def complete_abstract_value(exe_context, return_type, field_asts, info, result):
353
353
return complete_object_value (exe_context , runtime_type , field_asts , info , result )
354
354
355
355
356
- def get_default_resolve_type_fn (value , context , info , abstract_type ):
356
+ def get_default_resolve_type_fn (value , info , abstract_type ):
357
357
possible_types = info .schema .get_possible_types (abstract_type )
358
358
for type in possible_types :
359
359
if callable (type .is_type_of ) and type .is_type_of (value , info ):
0 commit comments