mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-10-31 07:57:26 +03:00 
			
		
		
		
	Merge pull request #258 from sjhewitt/next-sqla-pageinfo
sqla: pass pageinfo_type into connection_from_list_slice
This commit is contained in:
		
						commit
						2d09ab8537
					
				|  | @ -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