Storefront GraphQL
Queries
The fields a storefront query starts from, and what each returns.
shop
The shop this credential names.
Returns Shop!.
What Shop answers
| Field | Type | Description |
|---|---|---|
collection(handle) | Collection | |
collections | [Collection!]! | |
product(handle) | Product | One product by handle. Null for a draft, an archived one, or nothing at all. |
products(after, before, collection, first, last) | ShopProductsConnection! | Published products, in a stable order that survives the catalogue changing. |
collection takes:
| Argument | Type | Description |
|---|---|---|
handle | String! |
product takes:
| Argument | Type | Description |
|---|---|---|
handle | String! |
products takes:
| Argument | Type | Description |
|---|---|---|
after | String | |
before | String | |
collection | String | Limit to one collection, by its handle. |
first | Int | |
last | Int |