mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-23 01:56:54 +03:00
Added context to from_list
This commit is contained in:
parent
c4f29f050b
commit
7a5ad21b98
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user