Added context to from_list

This commit is contained in:
Markus Padourek 2016-05-20 14:00:57 +01:00
parent c4f29f050b
commit 7a5ad21b98

View File

@ -87,7 +87,7 @@ class Connection(ObjectType):
{'edge_type': edge_type, 'edges': edges})
@classmethod
def from_list(cls, iterable, args, info):
def from_list(cls, iterable, args, context, info):
assert isinstance(
iterable, Iterable), 'Resolved value from the connection field have to be iterable'
connection = connection_from_list(