Call Graphql endpoint from sling models and servlets | Community
Skip to main content
New Participant
Nov 24, 2021 3:44 AM UTC
Solved

Call Graphql endpoint from sling models and servlets

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.
user1576Accepted solution
Level 3
Nov 25, 2021 10:36 AM UTC

Hi abhilash ,

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

1 reply

user1576Accepted solution
Level 3
Nov 25, 2021 10:36 AM UTC

Hi abhilash ,

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

Translate