Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

AEM Cloud, CIF Addon and commerce-cif-graphql-integration-reference

Avatar

Level 1

Hello!

 

Has anyone used commerce-cif-graphql-integration-reference successfully with aem cloud and cif addon?

 

If we connect AEM to a proper Magento instance, aem seems to work fine, we can see products on aem components. If we point to the commerce-cif-graphql-integration-reference endpoint deployed with aio, we get a few query errors.

 

We manage to solve this error by adding values to the CategoryTree.uid field.

 

 

 

13.06.2022 09:20:12.452 ERROR [127.0.0.1 [1655104807456] GET /content/us/en.html HTTP/1.1] com.adobe.cq.commerce.core.components.client.MagentoGraphqlClient Failed to execute query: {categoryList(filters:{category_uid:{eq:"2"}}){uid,name,url_path,position,include_in_menu,children{uid,name,url_path,position,include_in_menu,children{uid,name,url_path,position,include_in_menu}}}}
com.google.gson.JsonParseException: com.shopify.graphql.support.SchemaViolationError: Invalid value null for field CategoryTree.uid
        at com.adobe.cq.commerce.magento.graphql.gson.QueryDeserializer.deserialize(QueryDeserializer.java:40) [com.adobe.commerce.cif.magento-graphql:9.0.0.magento242ee]

 

 

 

 

Actual error (this query works fine on Magento):

 

 

 

Failed to execute query: {products(filter:{}) {sort_fields {default options {label value}}}}

 

 

 

 

Does this commerce-cif-graphql-integration-reference project work, with mocked info, without need to do any extra code?

 

Versions:

aem: aem-sdk-2022.4.7100.20220421T124010Z-220400

cif: cif-cloud-ready-feature-pkg-2022.05.31.00-cq-commerce-addon-authorfar

 

Thanks!

@manuel_óscars89 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Yes , we've used it successfully but we did manifestation of response on adobe io in the format expected by cif components. Adobe IO acted as a middle ware to manipulate the end point service response in the format component expected that can be compared with response for Magento component.

1 Reply

Avatar

Correct answer by
Level 4

Yes , we've used it successfully but we did manifestation of response on adobe io in the format expected by cif components. Adobe IO acted as a middle ware to manipulate the end point service response in the format component expected that can be compared with response for Magento component.