- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateLineItemsStepWithSelector - Medusa Core Workflows Reference
This documentation provides a reference to the updateLineItemsStepWithSelector
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates line items.
Example#
Input#
UpdateLineItemWithSelectorDTO
UpdateLineItemWithSelectorDTOA pair of selectors and data, where the selectors determine which
line items to update, and the data determines what to update
in the line items.
UpdateLineItemWithSelectorDTO
UpdateLineItemWithSelectorDTOselector
Partial<CartLineItemDTO>Filters to specify which line items to update.
selector
Partial<CartLineItemDTO>data
Partial<UpdateLineItemDTO>The attributes to update in the line items.
data
Partial<UpdateLineItemDTO>Output#
CartLineItemDTO[]
CartLineItemDTO[]
CartLineItemDTO[]
CartLineItemDTO[]CartLineItemDTO
CartLineItemDTOThe cart line item details.
CartLineItemDTO
CartLineItemDTOWas this page helpful?