Skip to content

Commit c45417d

Browse files
committed
Fixed connection data with wrapped resolver
1 parent 65ece43 commit c45417d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graphene/relay/fields.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def resolve(self, instance, args, info):
3636
from graphene.relay.types import PageInfo
3737
schema = info.schema.graphene_schema
3838

39-
orig_resolved = super(ConnectionField, self).resolve(instance, args, info)
40-
if orig_resolved:
41-
resolved = self.wrap_resolved(orig_resolved, instance, args, info)
39+
resolved = super(ConnectionField, self).resolve(instance, args, info)
40+
if resolved:
41+
resolved = self.wrap_resolved(resolved, instance, args, info)
4242
assert isinstance(
4343
resolved, Iterable), 'Resolved value from the connection field have to be iterable'
4444

@@ -48,7 +48,7 @@ def resolve(self, instance, args, info):
4848

4949
connection = connection_from_list(resolved, args, connection_type=connection_type,
5050
edge_type=edge_type, pageinfo_type=PageInfo)
51-
connection.set_connection_data(orig_resolved)
51+
connection.set_connection_data(resolved)
5252
return connection
5353

5454
@memoize

0 commit comments

Comments
 (0)