Skip to main content

allProducts

Returns a paginated list with information about all the store products.

Usage​

Arguments

first*Int
Description

Number of items that should return from the complete result list.

afterString
Description

Product pagination argument, indicating the cursor corresponding to the item after which the results should be fetched.

query($first: Int!){
allProducts(first: $first) {
# StoreProductConnection fields
}
}

Example​

Get the names, SKUs, and cursors of the five products after the product associated with the cursor 4. Also, get the last cursor in the complete list and whether there are more results for the next page.

Didn't find your answers? Ask the Community. For documentation suggestions, submit your feedback.

JOIN THE COMMUNITY