Skip to Content

PreviousPriceEdge

An edge in a connection to a PreviousPrice.

Connection Structure

{ node: PreviousPrice cursor: String }

Pagination Arguments

ArgumentTypeDescription
firstIntReturns the first n elements from the list.
lastIntReturns the last n elements from the list.
beforeStringReturns the elements in the list that come before the specified cursor.
afterStringReturns 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 the after or before argument in subsequent requests to paginate through results.