Skip to content

Commit d0ee920

Browse files
committed
Add needed parameters back to connection_from_list
1 parent fad9b97 commit d0ee920

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

graphql_relay/connection/arrayconnection.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
from .connectiontypes import Connection, PageInfo, Edge
55

66

7-
def connection_from_list(data, args=None):
7+
def connection_from_list(data, args=None, connection_type=None,
8+
edge_type=None, pageinfo_type=None):
89
'''
910
A simple function that accepts an array and connection arguments, and returns
1011
a connection object for use in GraphQL. It uses array offsets as pagination,
@@ -14,6 +15,9 @@ def connection_from_list(data, args=None):
1415
return connection_from_list_slice(
1516
data,
1617
args,
18+
connection_type=connection_type,
19+
edge_type=edge_type,
20+
pageinfo_type=pageinfo_type,
1721
slice_start=0,
1822
list_length=_len,
1923
list_slice_length=_len,

0 commit comments

Comments
 (0)