upsertVariants - Product Module Reference
This documentation provides a reference to the upsertVariants
method. This belongs to the Product Module.
upsertVariants(data, sharedContext?): Promise<ProductVariantDTO[]>
This method updates existing variants, or creates new ones if they don't exist.
Example
Parameters
The attributes to update or create for each variant.
Returns
The updated and created variants.
upsertVariants(data, sharedContext?): Promise<ProductVariantDTO>
This method updates an existing variant, or creates a new one if it doesn't exist.
Example
Parameters
The attributes to update or create for the variant.
Returns
The updated or created variant.
Was this section helpful?