Home > @vsf-enterprise/commercetools-api > updateCartQuantity
# updateCartQuantity() function
Endpoint for updating quantity of given product from the cart. By default, it uses the updateCartDefaultQuery GraphQL query
Signature:
export declare function updateCartQuantity(context: Context, cart: UpdateCartQuantityParams, product: UpdateCartQuantityProductParams, customQuery?: CustomQuery): Promise<UpdateCartQuantityResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | Context | Automatically injected context. Refer to Context |
cart | UpdateCartQuantityParams | |
product | UpdateCartQuantityProductParams | Product information |
customQuery | CustomQuery | Custom queries included in the request |
Returns:
Promise<UpdateCartQuantityResponse>
User cart information