Call Graphql endpoint from sling models and servlets | Community
Skip to main content
November 24, 2021
Solved

Call Graphql endpoint from sling models and servlets

  • November 24, 2021
  • 1 reply
  • 1234 views

I have a requirement where I have been provided graphql endpoint! I need  to create a query and execute by making call to it and get the response in my Sling models and Servlets. Note(graphql endpoint is not of Magento). Also, the ask is to do it in the backend not in front end using Apollo client or any other clients!

 

I could see only documents related to graphql in spring boot. How can i make a call to it in my sling models and servlets in AEM. Could any one help me on this by providing any sample code.

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by user1576

Hi abhilash ,

 Please follow https://github.com/graphql-java/graphql-java-examples to get more help.

1 reply

user1576Accepted solution
Level 3
November 25, 2021

Hi abhilash ,

 Please follow https://github.com/graphql-java/graphql-java-examples to get more help.