PreviousPriceEdge
An edge in a connection to a PreviousPrice.
Connection Structure
{
node: PreviousPrice
cursor: String
}Pagination Arguments
| Argument | Type | Description |
|---|---|---|
| first | Int | Returns the first n elements from the list. |
| last | Int | Returns the last n elements from the list. |
| before | String | Returns the elements in the list that come before the specified cursor. |
| after | String | Returns the elements in the list that come after the specified cursor. |
PageInfo Structure
The pageInfo object contains information about pagination state:
hasNextPage(Boolean): Indicates whether there are more elements after the current page.hasPreviousPage(Boolean): Indicates whether there are elements before the current page.startCursor(String): The cursor of the first element in the current page.endCursor(String): The cursor of the last element in the current page.
Example
query {
previousPrices(first: 10) {
edges {
node {
id
price
}
cursor
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Edge Type
The PreviousPriceEdge type represents a single edge in a connection. It contains:
node(PreviousPrice, optional): The PreviousPrice object at this edge position.cursor(String, optional): An opaque cursor string used for pagination. Pass this value to theafterorbeforeargument in subsequent requests to paginate through results.