mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-23 15:10:48 +03:00
Update test_query.py
This commit is contained in:
parent
7424e6eabc
commit
2a99904101
|
@ -56,7 +56,7 @@ class Query(graphene.ObjectType):
|
|||
def resolve_sliced_nodes(self, args, info):
|
||||
sliced_list = [MyNode(name='my1'), MyNode(name='my2'), MyNode(name='my3')]
|
||||
total_count = 10
|
||||
return Connection.for_node(MyNode).from_list(sliced_list, args, None, info, total_count)
|
||||
return relay.Connection.for_node(MyNode).from_list(sliced_list, args, None, info, total_count)
|
||||
|
||||
schema.query = Query
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user