shoppingListLineItemsUpdate
Update quantities or other properties of existing shopping list items
Arguments
| Argument | Type | Description |
|---|---|---|
id | ID! | |
lineItems | [ShoppingListLineItemUpdateInput!]! |
Returns
ShoppingListLineItemsUpdateResponse!
| Field | Type | Description |
|---|---|---|
shoppingList | ShoppingList | Updated 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 } } } }{ "data": { "shoppingListLineItemsUpdate": { "shoppingList": { "id": "id-1", "lineItems": [ { "id": "id-1", "slug": "/example", "quantity": 1 } ] } } }}The query is the example the schema documents. The response shows its shape with placeholder values.
Served by
| @evolve-framework/commercetools | Resolved |
| @evolve-framework/medusa | Resolved |
| @evolve-framework/sfcc | Stub: answers Not implemented |
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-shopping-list:
ShoppingListLineItemsUpdate

