Skip to main content
Version: 3.x

ProductVariantBulkCreate

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

Returns how many objects were created.

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

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

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

List of the created variants.

Added in Saleor 3.11

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

DEPRECATED

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

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

Returned by

productVariantBulkCreate mutation


Was this page helpful?