ManufacturerConnection
A connection to a list of Manufacturer items.
Connection Structure
type ManufacturerConnection {
edges: [ManufacturerEdge]
nodes: [Manufacturer]
pageInfo: PageInfo!
totalCount: Int
}Pagination Arguments
| Argument | Type | Description |
|---|---|---|
| first | Int | Returns the first n items from the list |
| last | Int | Returns the last n items from the list |
| before | String | Returns items before the specified cursor |
| after | String | Returns items after the specified cursor |
PageInfo Structure
The pageInfo object provides information about pagination through the connection. It contains the following fields:
hasNextPage: Boolean indicating whether there are more items after the current pagehasPreviousPage: Boolean indicating whether there are items before the current pagestartCursor: Opaque cursor pointing to the first item in the current pageendCursor: Opaque cursor pointing to the last item in the current page
Example
{
manufacturers(first: 10, after: "eyJvZmZzZXQiOjB9") {
edges {
cursor
node {
id
name
}
}
nodes {
id
name
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
}
}Edge Type
The ManufacturerEdge type represents a single item within the connection. Each edge contains:
cursor: An opaque string used for pagination, allowing you to request items before or after this positionnode: The actualManufacturerobject containing the manufacturer data