Skip to content

Commit 5a949ce

Browse files
committed
Added context to sqlalchemy connectionfield
1 parent 83c2cb1 commit 5a949ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene/contrib/sqlalchemy/fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def __init__(self, *args, **kwargs):
2121
def model(self):
2222
return self.type._meta.model
2323

24-
def from_list(self, connection_type, resolved, args, info):
24+
def from_list(self, connection_type, resolved, args, context, info):
2525
if resolved is DefaultQuery:
2626
resolved = get_query(self.model, info)
2727
query = maybe_query(resolved)
28-
return super(SQLAlchemyConnectionField, self).from_list(connection_type, query, args, info)
28+
return super(SQLAlchemyConnectionField, self).from_list(connection_type, query, args, context, info)
2929

3030

3131
class ConnectionOrListField(Field):

0 commit comments

Comments
 (0)