Home > @vue-storefront/magento-api > customerCart
customerCart() function
Fetches the cart of the current logged in user
Signature:
export default function customerCart(context: Context, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise<ApolloQueryResult<CustomerCartQuery>>;
Parameters
Parameter | Type | Description |
---|---|---|
context | Context | VSF context |
customQuery | CustomQuery | (Optional) custom GraphQL query that extends the default one |
customHeaders | CustomHeaders | (Optional) (optional) - custom headers that extends the default headers |
Returns:
Promise<ApolloQueryResult<CustomerCartQuery>>