List of the shop’s products. For storefront search, use search query.


Returns the elements that come after the specified cursor.

Returns the elements that come before the specified cursor.

Returns up to the first n elements from the list.

Returns up to the last n elements from the list.

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to reverse
reverse
default:false

Reverse the order of the underlying list.

Sort the underlying list by the given key.


Was this section helpful?

A list of edges.

A list of available filters.

A list of the nodes contained in ProductEdge.

Information to aid in pagination.


Was this section helpful?

Examples

Hide code
DescriptionCopy
query getProducts($first: Int) {
  products(first: $first) {
    edges {
      cursor
      node {
        title
      }
    }
  }
}
Hide code
Response
JSON
{
  "products": {
    "edges": [
      {
        "cursor": "eyJsYXN0X2lkIjo2NTcyMTE2NSwibGFzdF92YWx1ZSI6IjY1NzIxMTY1In0=",
        "node": {
          "title": "Storefront Spoon"
        }
      },
      {
        "cursor": "eyJsYXN0X2lkIjoyNjMwNzE4NTYsImxhc3RfdmFsdWUiOiIyNjMwNzE4NTYifQ==",
        "node": {
          "title": "Storefront Shoes"
        }
      },
      {
        "cursor": "eyJsYXN0X2lkIjo1Mzg4MjUyNjEsImxhc3RfdmFsdWUiOiI1Mzg4MjUyNjEifQ==",
        "node": {
          "title": "Guitar"
        }
      }
    ]
  }
}