Skip to content

Commit c073620

Browse files
committed
bugfix: fix reference resovler
1 parent 1c5dbee commit c073620

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gql/resolver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ def reference_resolver(type_name: str):
5050

5151
def wrap(func: ReferenceResolver):
5252
@wraps(func)
53-
def sync_resolver(parent, info, **kwargs):
53+
def sync_resolver(parent, info, representation):
5454
try:
55-
result = func(parent, info, **kwargs)
55+
result = func(parent, info, representation)
5656
return dict(result) if result is not None else result
5757
except Exception as exc:
5858
print_resolver_error(info)
5959
traceback.print_exc()
6060
raise exc
6161

6262
@wraps(func)
63-
async def async_resolver(parent, info, **kwargs):
63+
async def async_resolver(parent, info, representation):
6464
try:
65-
result = await execute_async_function(func, parent, info, **kwargs)
65+
result = await execute_async_function(func, parent, info, representation)
6666
return dict(result) if result is not None else result
6767
except Exception as exc:
6868
print_resolver_error(info)

0 commit comments

Comments
 (0)