Home > @vsf-enterprise/commercetools-api > updateCart
# updateCart() function
Updates user cart using provided actions. By default, it uses the updateCartDefaultQuery GraphQL query
Signature:
export declare function updateCart(context: Context, params: UpdateCartParams, customQuery?: CustomQuery): Promise<UpdateCartResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | Context | Automatically injected context. Refer to Context |
params | UpdateCartParams | Cart and update actions information |
customQuery | CustomQuery | Custom queries included in the request |
Returns:
Promise<UpdateCartResponse>
User cart information