Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

CIF Cloud Addon Customization

Avatar

Level 1

We are doing an integration with 3rd party Commerce solution. While writing integration layer in Adobe IO we realised that the commerce schema is not working with Magento Schema. Some of the primary keys needs to be converted from Integer to String and some of the fields needs to be updated.

 

On the cloud environment, can we customise the CIF Addon schema. Or do we need to build our own connector with the schema.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hello, while customisations of the schema are possible and required at many places, like product attributes we recommend not changing fundamental things like the ids. This well break CIF add-on and components as GraphQL has built in type checking.

 

The good news is there will be a generic solution for this soon. Magento Schema (2.4.2+.) introduced a generic UID field which will replace the ID field (which is still there but got already deprecated). See https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-2.html#graphql and https://devdocs.magento.com/guides/v2.4/graphql/queries/category-list.html for some examples. With CIF we already working on full support for uid. This should make your requirement to convert the identifiers obsolete.

 
 

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Hello, while customisations of the schema are possible and required at many places, like product attributes we recommend not changing fundamental things like the ids. This well break CIF add-on and components as GraphQL has built in type checking.

 

The good news is there will be a generic solution for this soon. Magento Schema (2.4.2+.) introduced a generic UID field which will replace the ID field (which is still there but got already deprecated). See https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-2.html#graphql and https://devdocs.magento.com/guides/v2.4/graphql/queries/category-list.html for some examples. With CIF we already working on full support for uid. This should make your requirement to convert the identifiers obsolete.

 
 

Avatar

Community Advisor

@suryapramodhd73  -  I believe you are using Node.js as part of Adobe IO to pass the value as part of schema to Magento. You can update the value type while passing to Adobe IO's node js itself.

Thank,
Nikhil Kumar

Avatar

Employee
While this will technically be possible it will highly likely break on the AEM side. As CIF Core Components use Java models which are typed.