Model
RootCategoryUid
Magento\CatalogGraphQl\Model\Resolver\RootCategoryUid
What it does
This GraphQL resolver provides the root category UID for a store in Magento 2 GraphQL queries.
It retrieves the store's root category ID from the context and encodes it as a UID (unique identifier) for use in GraphQL responses.
Developers would use this when building GraphQL schemas that need to expose the store's root category identifier.
Public Methods
- resolve()