Skip to content

shoppingListLineItemsUpdate

Mutationin Shopping lists

Update quantities or other properties of existing shopping list items

Arguments

ArgumentTypeDescription
idID!
lineItems[ShoppingListLineItemUpdateInput!]!

Returns

ShoppingListLineItemsUpdateResponse!

FieldTypeDescription
shoppingListShoppingListUpdated shopping list information after line item operation
shoppingListErrors[ShoppingListLineItemsUpdateError!]Error details if line item operation failed

Example

mutation {
shoppingListLineItemsUpdate(
id: "sl-123"
lineItems: [
{
id: "li-456"
quantity: 5
},
{
id: "li-789"
quantity: 3
}
]
) {
shoppingList {
id
lineItems {
id
slug
quantity
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccStub: answers Not implemented

Used by

The storefront packages that send it, in these GraphQL documents: