CIF Cloud Addon Customization

Avatar

Avatar

suryapramodhd73

Avatar

suryapramodhd73

suryapramodhd73

16-03-2021

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

mhaack

Employee

Avatar

mhaack

Employee

mhaack
Employee

18-03-2021

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.

 
 

Answers (1)

Answers (1)

Avatar

Avatar

Nikhil-Kumar

MVP

Avatar

Nikhil-Kumar

MVP

Nikhil-Kumar
MVP

18-03-2021

@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