Expand my Community achievements bar.

SOLVED

Call Graphql endpoint from sling models and servlets

Avatar

Level 1

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!

1 Accepted Solution

Avatar

Correct answer by
Level 4
1 Reply

Avatar

Correct answer by
Level 4

Hi abhilash ,

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