Home > @vsf-enterprise/commercetools-api > getMe
# getMe() function
Endpoint for retrieving data about current user. By default, it uses the getMeBasicProfileDefaultQuery GraphQL query when customer
parameter is not passed and the getMeFullProfileDefaultQuery GraphQL query when it's passed
Signature:
export declare function getMe(context: Context, params?: GetMeParams, customQuery?: CustomQuery): Promise<GetMeResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | Context | Automatically injected context. Refer to Context |
params | GetMeParams | Parameters defining whether user is logged in |
customQuery | CustomQuery | Custom queries included in the request |
Returns:
Promise<GetMeResponse>
User data