Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

How to update CIF Core Components GraphQL query root field (products → CatalogSrv_products) in AEM?

Avatar

Level 2

Hi Community,

We are working with AEM CIF Core Components integrated with Magento. Our Magento schema exposes a custom root field CatalogSrv_products instead of the default products.

By default, CIF generates queries like:

image.png

 

But in our case, we need the query to use CatalogSrv_products, for example:

image.png

 

I see the query placed in CIF core component library at react-components/src/queries/query_bundle_product.graphql.js but I could not see any documentation on how to override this. 

Any guidance or best practices would be very helpful.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 1

Have you tried to expose a compatibility alias in Magento so CIF can keep using products??

 

Try creating a Magento GraphQL module that re-exports your existing resolver under Query.products and delegates to your current CatalogSrv_products logic.

Alternatively, try to override the react components that issue the queries and swap the root field using a proxy component. Though I will not recommend that due to maintenance issues

 

Good Luck,

Ravi