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