Log in
Model

RootCategoryId

Magento\CatalogGraphQl\Model\Resolver\RootCategoryId

What it does

This GraphQL resolver returns the root category ID for the current store context.

Developers use this class to retrieve the starting point of a store's category tree structure in GraphQL queries.

It has been deprecated in favor of using UIDs instead of numeric IDs for better consistency across distributed systems.

Public Methods

  • resolve()