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