Skip to content

Commit d060969

Browse files
committed
fixed Connection class definition syntax error
1 parent ce5741f commit d060969

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graphene_sqlalchemy/tests/test_connectionfactory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def LXResolver(root, args, context, info):
2222
return SQLAlchemyConnectionField.connection_resolver(LXResolver, connection, model, root, args, context, info)
2323

2424
def createLXConnectionField(table):
25-
class LXConnection(graphene.relay.Connection, node=table):
26-
pass
27-
25+
class LXConnection(graphene.relay.Connection):
26+
class Meta:
27+
node = table
2828
return LXConnectionField(LXConnection, filter=table.filter(), order_by=graphene.List(of_type=table.order_by))
2929

3030
registerConnectionFieldFactory(createLXConnectionField)

0 commit comments

Comments
 (0)