ListConnection
A connection to a list of items.
Attributes: page_info: Pagination data for this connection edges: Contains the nodes in this connection
Methods:
-
resolve_connection
Resolve a connection from the list of nodes.
This uses the described Relay Pagination algorithm_
Returns:
The resolved
Connection
Signature:
Parameters:
-
nodes:
An iterable/iteretor of nodes to paginate.
- Type
-
NodeIterableType[NodeType]
-
info:
The strawberry execution info resolve the type name from.
- Type
-
Info
-
before:
Returns the items in the list that come before the specified cursor.
- Type
-
str | None
- Default
-
None
-
after:
Returns the items in the list that come after the specified cursor.
- Type
-
str | None
- Default
-
None
-
first:
Returns the first n items from the list.
- Type
-
int | None
- Default
-
None
-
last:
Returns the items in the list that come after the specified cursor.
- Type
-
int | None
- Default
-
None
-
kwargs:
Additional arguments passed to the resolver.
- Type
-
Any
- Default
-
{}
-
Attributes:
-
page_info:
- Type
-
PageInfo
-
edges:
- Type
-
List[Edge[NodeType]]