mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-23 01:56:54 +03:00
sqla: pass pageinfo_type into connection_from_list_slice
This commit is contained in:
parent
dac4f2dc19
commit
2635a0c70d
|
@ -2,6 +2,7 @@ from functools import partial
|
|||
from sqlalchemy.orm.query import Query
|
||||
|
||||
from graphene.relay import ConnectionField
|
||||
from graphene.relay.connection import PageInfo
|
||||
from graphql_relay.connection.arrayconnection import connection_from_list_slice
|
||||
from .utils import get_query
|
||||
|
||||
|
@ -28,6 +29,7 @@ class SQLAlchemyConnectionField(ConnectionField):
|
|||
list_length=_len,
|
||||
list_slice_length=_len,
|
||||
connection_type=connection,
|
||||
pageinfo_type=PageInfo,
|
||||
edge_type=connection.Edge,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user