PreviousPriceConnection
A connection to a list of PreviousPrice items.
Connection Structure
{
edges: [PreviousPriceEdge]
nodes: [PreviousPrice]
pageInfo: PageInfo
totalCount: Int
}Pagination Arguments
PageInfo Structure
The pageInfo object provides information about pagination within the connection. It contains details about whether additional pages exist in both directions, allowing you to implement cursor-based pagination. The object includes fields for tracking the cursor positions of the first and last items in the current page.
Example
query {
productVariant(id: 12345) {
previousPrices(first: 10, after: "eyJkaXJlY3Rpb24iOiJuZXh0In0=") {
edges {
cursor
node {
id
amount
}
}
nodes {
id
amount
}
pageInfo {
hasNextPage
hasPreviousPage
}
totalCount
}
}
}Edge Type
The PreviousPriceEdge type represents an individual item within the connection. Each edge contains a node field that holds the actual PreviousPrice object data, and a cursor field that provides an opaque string identifier used for pagination to specify positions within the connection.