update - Product Module Reference
This documentation provides a reference to the update
method. This belongs to the Product Module.
update(id, data, sharedContext?): Promise<ProductDTO>
This method is used to update a product.
Example
Parameters
id
stringRequiredThe ID of the product to be updated.
The attributes of the product to be updated
Returns
The updated product.
update(selector, data, sharedContext?): Promise<ProductDTO[]>
This method is used to update a list of products matching the specified filters.
Example
Parameters
The filters specifying which products to update.
The attributes to be updated on the selected products
Returns
The updated products.
Was this section helpful?