Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update schema
Marcin Gębaladf464ef17895
diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.pyindex a5eecae6a2..4edb286c99 100644--- a/saleor/graphql/product/types.py+++ b/saleor/graphql/product/types.py@@ -119,10 +119,11 @@ class Margin(graphene.ObjectType):class SelectedAttribute(graphene.ObjectType):attribute = graphene.Field(- Attribute, default_value=None, description=AttributeDescriptions.NAME)+ Attribute, default_value=None, description=AttributeDescriptions.NAME,+ required=True)value = graphene.Field(- AttributeValue,- default_value=None, description='Value of an attribute.')+ AttributeValue, default_value=None,+ description='Value of an attribute.', required=True)class Meta:description = 'Represents a custom attribute.'@@ -234,7 +235,7 @@ class Product(CountableDjangoObjectType):description=dedent("""The product's base price (without any discountsapplied)."""))attributes = graphene.List(- SelectedAttribute,+ graphene.NonNull(SelectedAttribute), required=True,description='List of attributes assigned to this product.')purchase_cost = graphene.Field(MoneyRange)margin = graphene.Field(Margin)diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 578a6e83fd..a3cecbf2da 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -1322,7 +1322,7 @@ type Product implements Node {price: MoneyavailableOn: DateisPublished: Boolean!- attributes: [SelectedAttribute]+ attributes: [SelectedAttribute!]!updatedAt: DateTimechargeTaxes: Boolean!taxRate: String!@@ -1684,8 +1684,8 @@ type SaleUpdate {}type SelectedAttribute {- attribute: Attribute- value: AttributeValue+ attribute: Attribute!+ value: AttributeValue!}input SeoInput {