Skip to main content

ProductVariantBulkCreate Object

Creates product variants for a given product.

Requires MANAGE_PRODUCTSpermission.
type ProductVariantBulkCreate {
count: Int!
productVariants: [ProductVariant!]!
results: [ProductVariantBulkResult!]!
bulkProductErrors: [BulkProductError!]! @deprecated
errors: [BulkProductError!]!
}

Fields

ProductVariantBulkCreate.count ● Int! non-null scalar miscellaneous

Returns how many objects were created.

ProductVariantBulkCreate.productVariants ● [ProductVariant!]! non-null object products

List of the created variants.This field will be removed in Saleor 4.0.

ProductVariantBulkCreate.results ● [ProductVariantBulkResult!]! non-null object products

List of the created variants.

ProductVariantBulkCreate.bulkProductErrors ● [BulkProductError!]! deprecated non-null object products

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

ProductVariantBulkCreate.errors ● [BulkProductError!]! non-null object products

Returned By

productVariantBulkCreate mutation