Home > @vue-storefront/magento-api > updateCartItems
updateCartItems() function
Updates the contents of the given cart
Signature:
export default function updateCartItems(context: Context, input: UpdateCartItemsInput, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise<FetchResult<UpdateCartItemsMutation>>;
Parameters
Parameter | Type | Description |
---|---|---|
context | Context | VSF context |
input | UpdateCartItemsInput | ID of the cart and the items to update it |
customQuery | CustomQuery | (Optional) custom GraphQL query that extends the default one |
customHeaders | CustomHeaders | (Optional) (optional) - custom headers that extends the default headers |
Returns:
Promise<FetchResult<UpdateCartItemsMutation>>