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.
after
String
Description
Product pagination argument, indicating the cursor corresponding to the item after which the results should be fetched.
- Query
- Response
query($first: Int!){
allProducts(first: $first) {
# StoreProductConnection fields
}
}
Below you can see a list of all fields that can be queried with allProducts
. Click on the links to learn more details about each field.
StoreProductConnection
pageInfo
: StorePageInfohasNextPage
: boolean!hasPreviousPage
: boolean!startCursor
: string!endCursor
: string!totalCount
: int!
edges
: [StoreProductEdge]!node
: StoreProduct!- Product information. Check StoreProduct to see all possible fields.
cursor
: string!
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.