Can anyone help us on how to invoke a Graphql query from Adobe IO runtime environment.
Basically we are trying to build an api layer in Adobe io which acts as middle layer between magento and other consuming applications such as AEM.
Any reference invocation or Pseudo code will help.
I suggest having a look at https://github.com/adobe/commerce-cif-graphql-integration-reference. This project is about exposing a GraphQL API based on the Magento schema. The schema you implement can be a subset or extensions of the Magento schema or a completely different GraphQL schema.
I am returning the Promise by resolving the output that I got from Magento:
So In the step just above where I am logging the output, it shows me the output but returns null although I returned it as a Promise.
Instead if I pass any static data it resolves fine.
Hoping this helps !
We have extended the createCustomer in our resolvers and we are trying to call the magento and get the data as part of createCustomer call and return in as a response.
Our extended createCustomer entry point in cartResolver.js :