File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,19 +50,19 @@ def reference_resolver(type_name: str):
50
50
51
51
def wrap (func : ReferenceResolver ):
52
52
@wraps (func )
53
- def sync_resolver (parent , info , ** kwargs ):
53
+ def sync_resolver (parent , info , representation ):
54
54
try :
55
- result = func (parent , info , ** kwargs )
55
+ result = func (parent , info , representation )
56
56
return dict (result ) if result is not None else result
57
57
except Exception as exc :
58
58
print_resolver_error (info )
59
59
traceback .print_exc ()
60
60
raise exc
61
61
62
62
@wraps (func )
63
- async def async_resolver (parent , info , ** kwargs ):
63
+ async def async_resolver (parent , info , representation ):
64
64
try :
65
- result = await execute_async_function (func , parent , info , ** kwargs )
65
+ result = await execute_async_function (func , parent , info , representation )
66
66
return dict (result ) if result is not None else result
67
67
except Exception as exc :
68
68
print_resolver_error (info )
You can’t perform that action at this time.
0 commit comments