ProductSortKey
The set of valid sort keys for product listings. Use this enum to specify how products should be ordered in search results and product collections.
Enum Definition
enum ProductSortKey {
TITLE
PRICE
CREATED
UPDATED
RATING
MODEL_NUMBER
BEST_SELLING
LAST_SOLD
}Values
Example
query {
products(first: 10, sortKey: BEST_SELLING) {
edges {
node {
id
title
price
rating
}
}
}
}Related Types
ProductConnectionProductEdgeProduct