update - Cart Module Reference
This documentation provides a reference to the update
method. This belongs to the Cart Module.
update(data): Promise<CartDTO[]>
This method updates existing carts.
Example
Parameters
The attributes to update in the carts.
Returns
The updated carts.
update(cartId, data, sharedContext?): Promise<CartDTO>
This method updates an existing cart.
Example
Parameters
cartId
stringRequiredThe cart's ID.
The attributes to update in the cart data.
Returns
The updated cart.
update(selector, data, sharedContext?): Promise<CartDTO[]>
This method updates existing carts matching the specified filters.
Example
Parameters
The filters that specify which carts to update.
The attributes to update in the carts.
Returns
The updated carts.
Was this section helpful?