diff --git a/graphene/relay/types.py b/graphene/relay/types.py index db4ea8e6..ced0140c 100644 --- a/graphene/relay/types.py +++ b/graphene/relay/types.py @@ -90,12 +90,12 @@ class Connection(ObjectType): def from_list(cls, iterable, args, context, info, total_count=None): assert isinstance( iterable, Iterable), 'Resolved value from the connection field have to be iterable' - + list_slice_length = len(iterable) list_length = total_count if total_count else list_slice_length - + connection = connection_from_list_slice( - iterable, args, connection_type=cls, + iterable, args, connection_type=cls, edge_type=cls.edge_type, pageinfo_type=PageInfo, list_length=list_length, list_slice_length=list_slice_length) connection.set_connection_data(iterable)