sqla: pass pageinfo_type into connection_from_list_slice

This commit is contained in:
Simon Hewitt 2016-08-19 18:51:12 -07:00
parent dac4f2dc19
commit 2635a0c70d

View File

@ -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,
)