How to update CIF Core Components GraphQL query root field (products → CatalogSrv_products) in AEM? | Community
Skip to main content
kpawan
Level 2
September 9, 2025
Question

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

  • September 9, 2025
  • 1 reply
  • 227 views

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:

 

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

 

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

ravisurampudi
New Member
September 15, 2025

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