ProductVariantBulkCreate
Result of product variant bulk create mutation.
type ProductVariantBulkCreate {
count: Int!
productVariants: [ProductVariant!]!
productErrors: [BulkProductError!]!
bulkProductErrors: [BulkProductError!]!
}
Fields
ProductVariantBulkCreate.count ● Int! non-null scalar
Number of variants created or updated. A row whose externalSource and externalId match a variant of the product updates it.
ProductVariantBulkCreate.productVariants ● [ProductVariant!]! non-null object
The created and updated product variants.
ProductVariantBulkCreate.productErrors ● [BulkProductError!]! non-null object
List of errors that occurred executing the mutation. Carries two kinds. If count is 0 and productVariants is empty the batch was rejected outright and nothing was written. Otherwise the batch committed and every entry is advisory: the variant at index was written, but with field: "image" its image was rejected, or not added because the row updated an existing variant, and with field: "stocks" its stocks were not applied because the row updated an existing variant.
ProductVariantBulkCreate.bulkProductErrors ● [BulkProductError!]! non-null object
List of errors that occurred executing the mutation (Graphene alias).
Returned By
productVariantBulkCreate mutation