Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change filter field from product_type__id to product_type
Maciej Korycinski5ada57afe37e
diff --git a/saleor/graphql/product/filters.py b/saleor/graphql/product/filters.pyindex cd41d507ba..54eb241444 100644--- a/saleor/graphql/product/filters.py+++ b/saleor/graphql/product/filters.py@@ -70,6 +70,6 @@ class ProductFilter(django_filters.FilterSet):fields = {'name': ['exact', 'icontains'],'category': ['exact'],- 'product_type__id': ['exact'],+ 'product_type': ['exact'],'price': ['exact', 'lt', 'gt'],}diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 901a6796cd..7a19ce2fe1 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -41,7 +41,7 @@ input AddressInput {city: StringcityArea: StringpostalCode: String- country: String!+ country: StringcountryArea: Stringphone: String}@@ -791,8 +791,8 @@ type DraftOrderLineUpdate {type DraftOrderLinesCreate {errors: [Error!]- order: Order!- orderLines: [OrderLine!]!+ order: Order+ orderLines: [OrderLine!]}type DraftOrderUpdate {@@ -1192,7 +1192,7 @@ type Mutations {tokenCreate(email: String!, password: String!): CreateTokentokenRefresh(token: String!): RefreshtokenVerify(token: String!): VerifyToken- checkoutBillingAddressUpdate(billingAddress: AddressInput, checkoutId: ID): CheckoutBillingAddressUpdate+ checkoutBillingAddressUpdate(billingAddress: AddressInput!, checkoutId: ID): CheckoutBillingAddressUpdatecheckoutComplete(checkoutId: ID!): CheckoutCompletecheckoutCreate(input: CheckoutCreateInput!): CheckoutCreatecheckoutCustomerAttach(checkoutId: ID!, customerId: ID!): CheckoutCustomerAttach@@ -1202,7 +1202,7 @@ type Mutations {checkoutLinesAdd(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesAddcheckoutLinesUpdate(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesUpdatecheckoutPaymentCreate(checkoutId: ID!, input: PaymentInput!): CheckoutPaymentCreate- checkoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput): CheckoutShippingAddressUpdate+ checkoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput!): CheckoutShippingAddressUpdatecheckoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdatecheckoutUpdateVoucher(checkoutId: ID!, voucherCode: String): CheckoutUpdateVoucherpasswordReset(email: String!): PasswordReset@@ -1721,7 +1721,7 @@ input ProductFilterInput {name: Stringname__icontains: Stringcategory: ID- product_type__id: ID+ product_type: IDprice: Floatprice__lt: Floatprice__gt: Float