Home > @vsf-enterprise/commercetools-api > addToMyShoppingList

# addToMyShoppingList() function

Endpoint for adding item to the wishlist. By default, it uses the addToMyShoppingListDefaultQuery GraphQL query

Signature:

export declare function addToMyShoppingList(context: Context, params: AddToMyShoppingListParams, customQuery?: CustomQuery): Promise<AddToMyShoppingListResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
params AddToMyShoppingListParams Product SKU and wishist information
customQuery CustomQuery Custom queries included in the request

Returns:

Promise<AddToMyShoppingListResponse>

User wishlist