Skip to content

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

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.py
index 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.graphql
index 901a6796cd..7a19ce2fe1 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -41,7 +41,7 @@ input AddressInput {
city: String
cityArea: String
postalCode: String
- country: String!
+ country: String
countryArea: String
phone: 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!): CreateToken
tokenRefresh(token: String!): Refresh
tokenVerify(token: String!): VerifyToken
- checkoutBillingAddressUpdate(billingAddress: AddressInput, checkoutId: ID): CheckoutBillingAddressUpdate
+ checkoutBillingAddressUpdate(billingAddress: AddressInput!, checkoutId: ID): CheckoutBillingAddressUpdate
checkoutComplete(checkoutId: ID!): CheckoutComplete
checkoutCreate(input: CheckoutCreateInput!): CheckoutCreate
checkoutCustomerAttach(checkoutId: ID!, customerId: ID!): CheckoutCustomerAttach
@@ -1202,7 +1202,7 @@ type Mutations {
checkoutLinesAdd(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesAdd
checkoutLinesUpdate(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesUpdate
checkoutPaymentCreate(checkoutId: ID!, input: PaymentInput!): CheckoutPaymentCreate
- checkoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput): CheckoutShippingAddressUpdate
+ checkoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput!): CheckoutShippingAddressUpdate
checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdate
checkoutUpdateVoucher(checkoutId: ID!, voucherCode: String): CheckoutUpdateVoucher
passwordReset(email: String!): PasswordReset
@@ -1721,7 +1721,7 @@ input ProductFilterInput {
name: String
name__icontains: String
category: ID
- product_type__id: ID
+ product_type: ID
price: Float
price__lt: Float
price__gt: Float