ProductGroupConnection
A connection to a list of ProductGroup items.
Connection Structure
type ProductGroupConnection {
edges: [ProductGroupEdge]
nodes: [ProductGroup]
pageInfo: PageInfo!
totalCount: Int
}Pagination Arguments
PageInfo Structure
The pageInfo object contains pagination metadata about the current page of results:
- hasNextPage (Boolean!): Whether there are more items after the current page
- hasPreviousPage (Boolean!): Whether there are items before the current page
- startCursor (String): Cursor pointing to the first item in the current page
- endCursor (String): Cursor pointing to the last item in the current page
Example
{
productGroups(first: 10, after: "eyJpZCI6IjEyMzQ1In0=") {
edges {
node {
id
name
}
cursor
}
nodes {
id
name
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
}
}Edge Type
The ProductGroupEdge type represents a single item in the connection and contains:
- node (ProductGroup): The ProductGroup object
- cursor (String!): An opaque cursor value for pagination, used with the
beforeandafterarguments