Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove "minimal_price_(gte|lte)" from products' inputs

Mateusz Dereniowski3b19affaa616
diff --git a/saleor/graphql/product/schema.py b/saleor/graphql/product/schema.py
index 75ee6155e9..90efdab9ec 100644
--- a/saleor/graphql/product/schema.py
+++ b/saleor/graphql/product/schema.py
@@ -196,22 +196,12 @@ class ProductQueries(graphene.ObjectType):
graphene.ID, description="Filter products by collections."
),
price_lte=graphene.Float(
- description="Filter by price less than or equal to the given value."
+ description="""DEPRECATED: Use the "filter" input.
+ Filter by price less than or equal to the given value."""
),
price_gte=graphene.Float(
- description="Filter by price greater than or equal to the given value."
- ),
- minimal_price_lte=graphene.Float(
- description=(
- "Filter by minimal price of variants (including discounts) "
- "that is less than or equal to the given value."
- )
- ),
- minimal_price_gte=graphene.Float(
- description=(
- "Filter by miniaml price of variants (including discounts) "
- "that is greater than or equal to the given value."
- )
+ description="""DEPRECATED: Use the "filter" input.
+ Filter by price greater than or equal to the given value."""
),
sort_by=graphene.Argument(ProductOrder, description="Sort products."),
stock_availability=graphene.Argument(
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index fba88cc43a..212d9e879d 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -2934,7 +2934,7 @@ type Query {
collection(id: ID!): Collection
collections(filter: CollectionFilterInput, query: String, before: String, after: String, first: Int, last: Int): CollectionCountableConnection
product(id: ID!): Product
- products(filter: ProductFilterInput, attributes: [AttributeScalar], categories: [ID], collections: [ID], priceLte: Float, priceGte: Float, minimalPriceLte: Float, minimalPriceGte: Float, sortBy: ProductOrder, stockAvailability: StockAvailability, query: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection
+ products(filter: ProductFilterInput, attributes: [AttributeScalar], categories: [ID], collections: [ID], priceLte: Float, priceGte: Float, sortBy: ProductOrder, stockAvailability: StockAvailability, query: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection
productType(id: ID!): ProductType
productTypes(filter: ProductTypeFilterInput, query: String, before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection
productVariant(id: ID!): ProductVariant