|
@@ -35,6 +35,8 @@ union SellingPlanCheckoutChargeValue = MoneyV2 | SellingPlanCheckoutChargePercen
|
|
|
union SellingPlanPriceAdjustmentValue = SellingPlanFixedAmountPriceAdjustment | SellingPlanFixedPriceAdjustment | SellingPlanPercentagePriceAdjustment
|
|
|
|
|
|
type Query {
|
|
|
+ collection(handle: String id: ID): Collection
|
|
|
+
|
|
|
collections(
|
|
|
after: String,
|
|
|
before: String,
|
|
@@ -46,6 +48,16 @@ type Query {
|
|
|
): CollectionConnection!
|
|
|
|
|
|
product(handle: String id: ID): Product
|
|
|
+
|
|
|
+ products(
|
|
|
+ after: String
|
|
|
+ before: String
|
|
|
+ first: Int
|
|
|
+ last: Int
|
|
|
+ query: String
|
|
|
+ reverse: Boolean = false
|
|
|
+ sortKey: ProductSortKeys = ID
|
|
|
+ ): ProductConnection!
|
|
|
}
|
|
|
|
|
|
# An auto-generated type for paginating through multiple Collections.
|
|
@@ -877,6 +889,36 @@ input ProductFilter {
|
|
|
variantMetafield: MetafieldFilter
|
|
|
}
|
|
|
|
|
|
+enum ProductSortKeys {
|
|
|
+ # Sort by the `title` value.
|
|
|
+ TITLE
|
|
|
+
|
|
|
+ # Sort by the `product_type` value.
|
|
|
+ PRODUCT_TYPE
|
|
|
+
|
|
|
+ # Sort by the `vendor` value.
|
|
|
+ VENDOR
|
|
|
+
|
|
|
+ # Sort by the `updated_at` value.
|
|
|
+ UPDATED_AT
|
|
|
+
|
|
|
+ # Sort by the `created_at` value.
|
|
|
+ CREATED_AT
|
|
|
+
|
|
|
+ # Sort by the `best_selling` value.
|
|
|
+ BEST_SELLING
|
|
|
+
|
|
|
+ # Sort by the price value.
|
|
|
+ PRICE
|
|
|
+
|
|
|
+ # Sort by the id value.
|
|
|
+ ID
|
|
|
+
|
|
|
+ # Sort by relevance to the search terms when the query parameter is specified on the connection.
|
|
|
+ # Don't use this sort key when no search query is specified.
|
|
|
+ RELEVANCE
|
|
|
+}
|
|
|
+
|
|
|
# A filter used to view a subset of products in a collection matching a specific price range.
|
|
|
input PriceRangeFilter {
|
|
|
# The minimum price in the range. Defaults to zero.
|