GetCustomerGroup
Magento\CatalogCustomerGraphQl\Model\Resolver\Customer\GetCustomerGroup
What it does
This class retrieves the customer group ID for a given customer in GraphQL contexts.
When a customer ID is provided, it fetches the customer's group assignment; for guest users (no customer ID), it returns the 'NOT_LOGGED_IN' group ID.
Developers use this when resolving GraphQL queries that need customer group information for pricing, catalog rules, or personalized content.
Public Methods
- execute()