Product Sort Keys
Sorting options for the products query. Supports sorting products by criteria such as best-selling and price, and by product attributes such as type, and vendor.
Note: Use the <a href="/docs/api/storefront/unstable/enums/ProductSortKeys#enums-RELEVANCE"><code><span class="PreventFireFoxApplyingGapToWBR">R<wbr/>E<wbr/>L<wbr/>E<wbr/>V<wbr/>A<wbr/>N<wbr/>C<wbr/>E</span></code></a> key only when a search query is specified.
Anchor to Valid valuesValid values
- BEST_SELLING
- CREATED_AT
- ID
- PRICE
- PRODUCT_TYPE
- RELEVANCE
- TITLE
- UPDATED_AT
- VENDOR
- Anchor to BEST_SELLINGBEST_
SELLING Sort by the
value.- Anchor to CREATED_ATCREATED_
AT Sort by the
value.Sort by the
idvalue.- Anchor to PRICEPRICE
Sort by the
pricevalue.- Anchor to PRODUCT_TYPEPRODUCT_
TYPE Sort by the
value.- Anchor to RELEVANCERELEVANCE
Sort by relevance to the search terms when the
queryparameter is specified on the connection. Don't use this sort key when no search query is specified.- Anchor to TITLETITLE
Sort by the
titlevalue.- Anchor to UPDATED_ATUPDATED_
AT Sort by the
value.- Anchor to VENDORVENDOR
Sort by the
vendorvalue.
Anchor to FieldsFields
- •ARGUMENT
The entry point for all Storefront API queries. Provides access to shop resources including products, collections, carts, and customer data, as well as content like articles and pages. This query acts as the public, top-level type from which all queries must start.
Use individual queries like
productorcollectionto fetch specific resources by ID or handle. Use plural queries likeproductsorcollectionsto retrieve paginated lists with optional filtering and sorting. Thesearchandqueries enable storefront search functionality.Explore queries interactively with the GraphiQL explorer and sample query kit.
- •ARGUMENT