Currently, Litium Storefront GraphQL only returns GUIDs for Pointer fields like CustomersGroup
and CustomersOrganization
, without resolving them into meaningful entity details. This creates additional complexity when we need to fetch customer group names, organization information, or associated persons, as it requires separate API calls.
We propose enhancing Storefront GraphQL to:
Resolve CustomersGroup
pointers into full group details, including the group name and associated persons (members of the group).
Resolve CustomersOrganization
pointers into organization details, including organization name and associated persons (contacts within the organization).
To address security concerns, we suggest introducing access control at the field level—ensuring only authorized requests can access this data. This approach would maintain data protection while improving development efficiency and the richness of Storefront GraphQL responses.
This enhancement would greatly simplify working with customer-related data, reduce extra API calls, and offer a more streamlined and powerful GraphQL experience.