Log in
Model

CategoryAttributeReader

Magento\CatalogGraphQl\Model\Config\CategoryAttributeReader

What it does

This class dynamically reads all EAV category attributes from the database and adds them to the GraphQL schema configuration for CategoryInterface and CategoryTree types.

Developers would use this when extending Magento's GraphQL API to automatically expose custom category attributes without manually defining each field in the schema, though some system attributes are excluded from exposure.

Public Methods

  • read()