Skip to content

shoppingListLineItemsRemove

Mutationin Shopping lists

Remove specific items from a shopping list

Arguments

ArgumentTypeDescription
idID!
lineItemIds[String!]!

Returns

ShoppingListLineItemsRemoveResponse!

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

Example

mutation {
shoppingListLineItemsRemove(
id: "sl-123"
lineItemIds: ["li-456", "li-789"]
) {
shoppingList {
id
lineItems {
id
slug
}
}
}
}

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: