GraphQL Login Mutation now returns entire Customer object
1621446815712
Storefront API
Enhancement
The GraphQL Storefront API’s Login Mutation now supports fetching all of the details of the customer account after a successful login. Consider this query:
mutation Login($email: String!, $pass: String!) { login(email: $email, password: $pass) { result customer { entityId firstName lastName email storeCredit { value currencyCode } attributes { attribute(entityId: 123) { name value } } } } }
Did you like this update?
{error_message}
Leave your name and email so that we can reply to you (both fields are optional):
Thanks for your feedback!