Skip to content

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

Update schema

Marcin Gębala6068d2f84b6b
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 01d36299fe..85e76bf360 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -1452,7 +1452,7 @@ type ProductVariantCreate {
}
input ProductVariantCreateInput {
- attributes: [AttributeValueInput]
+ attributes: [AttributeValueInput]!
costPrice: Decimal
priceOverride: Decimal
sku: String
@@ -1598,7 +1598,7 @@ input SetPasswordInput {
type ShippingMethod implements Node {
id: ID!
name: String!
- type: ShippingMethodTypeEnum!
+ type: ShippingMethodTypeEnum
price: Money
minimumOrderPrice: Money
maximumOrderPrice: Money
diff --git a/saleor/static/dashboard-next/products/mutations.ts b/saleor/static/dashboard-next/products/mutations.ts
index 46517987f3..b4642c831f 100644
--- a/saleor/static/dashboard-next/products/mutations.ts
+++ b/saleor/static/dashboard-next/products/mutations.ts
@@ -243,7 +243,7 @@ export const TypedVariantUpdateMutation = TypedMutation<
export const variantCreateMutation = gql`
${fragmentVariant}
mutation VariantCreate(
- $attributes: [AttributeValueInput]
+ $attributes: [AttributeValueInput]!
$costPrice: Decimal
$priceOverride: Decimal
$product: ID!
diff --git a/saleor/static/dashboard-next/products/types/VariantCreate.ts b/saleor/static/dashboard-next/products/types/VariantCreate.ts
index 56c21bc995..59c275663a 100644
--- a/saleor/static/dashboard-next/products/types/VariantCreate.ts
+++ b/saleor/static/dashboard-next/products/types/VariantCreate.ts
@@ -155,7 +155,7 @@ export interface VariantCreate {
}
export interface VariantCreateVariables {
- attributes?: (AttributeValueInput | null)[] | null;
+ attributes: (AttributeValueInput | null)[];
costPrice?: any | null;
priceOverride?: any | null;
product: string;