Skip to Content

ProductEdge

An edge in a connection to a Product, used to represent individual items within a product connection along with pagination cursor information.

Connection Structure

type ProductEdge { node: Product cursor: String }

Edge Type

The ProductEdge type represents a single edge in a product connection. It contains two fields:

  • node: The Product object at this edge. This field is optional and contains the actual product data being retrieved.
  • cursor: An opaque string value used for pagination purposes. This cursor can be passed as the after or before argument in subsequent queries to retrieve the next or previous set of results.

Example

query { products(first: 10) { edges { node { id name description } cursor } pageInfo { hasNextPage hasPreviousPage } } }