Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Call Graphql endpoint from sling models and servlets

abhilash12
Level 1
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
sanketd27011989
Correct answer by
Level 2
Level 2
1 Reply
sanketd27011989
Correct answer by
Level 2
Level 2