Skip to Content

ProductSortKey

The set of valid sort keys for product listings. This enum defines the available sorting options when retrieving product collections or search results.

Enum Definition

enum ProductSortKey { TITLE PRICE CREATED UPDATED RATING MODEL_NUMBER BEST_SELLING LAST_SOLD }

Values

ValueDescription
TITLESort products alphabetically by title
PRICESort products by price
CREATEDSort products by creation date
UPDATEDSort products by last updated date
RATINGSort products by customer rating
MODEL_NUMBERSort products by model number
BEST_SELLINGSort products by sales volume
LAST_SOLDSort products by most recent sale date

Example

query { products(sortKey: BEST_SELLING, limit: 10) { id title price rating } }

No related types specified.