ProductVariantCreateInput Input Type
No description
input ProductVariantCreateInput {
attributes: [AttributeValueInput!]!
sku: String
name: String
trackInventory: Boolean
weight: WeightScalar
preorder: PreorderSettingsInput
quantityLimitPerCustomer: Int
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
product: ID!
stocks: [StockInput!]
}
Fields
ProductVariantCreateInput.attributes
● [AttributeValueInput!]!
non-null input attributes
List of attributes specific to this variant.
ProductVariantCreateInput.sku
● String
scalar miscellaneous
Stock keeping unit.
ProductVariantCreateInput.name
● String
scalar miscellaneous
Variant name.
ProductVariantCreateInput.trackInventory
● Boolean
scalar miscellaneous
Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, Shop.trackInventoryByDefault
will be used.
ProductVariantCreateInput.weight
● WeightScalar
scalar miscellaneous
Weight of the Product Variant.
ProductVariantCreateInput.preorder
● PreorderSettingsInput
input products
Determines if variant is in preorder.
ProductVariantCreateInput.quantityLimitPerCustomer
● Int
scalar miscellaneous
Determines maximum quantity of ProductVariant
,that can be bought in a single checkout.
ProductVariantCreateInput.metadata
● [MetadataInput!]
list input miscellaneous
Fields required to update the product variant metadata.
ProductVariantCreateInput.privateMetadata
● [MetadataInput!]
list input miscellaneous
Fields required to update the product variant private metadata.
ProductVariantCreateInput.externalReference
● String
scalar miscellaneous
External ID of this product variant.
ProductVariantCreateInput.product
● ID!
non-null scalar miscellaneous
Product ID of which type is the variant.
ProductVariantCreateInput.stocks
● [StockInput!]
list input products
Stocks of a product available for sale.
Member Of
productVariantCreate
mutation