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

Cannot serve request to /content/graphiql/ in org.apache.sling.servlets.get.DefaultGetServlet

bpeddapudi
Level 2
Level 2

I want to use GraphQL for a poc. I am reffereing to this documentation.

I don't see GraphQL persistent Queries option in my configuration under Tools > General > Configuration browser nor I see any GraphQL option under Tools > Assets.

I tried installing the GraphiQL interface from this link But now if I am trying to access http://localhost:4502/content/graphiql/ I am getting the below issue.

Screen Shot 2021-07-08 at 7.01.51 PM.png

 I have AEM v6.0 on my local. Is there something else I need to do to use GraphiQL?

1 Accepted Solution
BrijeshYadav
Correct answer by
Level 5
Level 5

Hi @bpeddapudi ,
You should have AEM 6.4.2.0 for content fragmentation because GraphQl api works on content fragments.

Also GraphQL currently only available for AEM SDK or AEM as Cloud Service. Some help can be found here 
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g....


Here are other useful documentation for further help
Enable the GraphQL interface
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-co...

 

Installing the AEM GraphiQL interface
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-co...

/Brijesh

View solution in original post

5 Replies
Dipti_Chauhan
Community Advisor
Community Advisor

Hi @bpeddapudi  

 Are you using AEMaaCS? I think graphiQL interface only works with AEMaaCS.

 

Thanks

Dipti

bpeddapudi
Level 2
Level 2
@Dipti_Cauhan is there any way that we can use GraphQL on our local instances?
BrijeshYadav
Correct answer by
Level 5
Level 5

Hi @bpeddapudi ,
You should have AEM 6.4.2.0 for content fragmentation because GraphQl api works on content fragments.

Also GraphQL currently only available for AEM SDK or AEM as Cloud Service. Some help can be found here 
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g....


Here are other useful documentation for further help
Enable the GraphQL interface
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-co...

 

Installing the AEM GraphiQL interface
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-co...

/Brijesh

View solution in original post

Dipti_Chauhan
Community Advisor
Community Advisor
Hi @BrijeshYadav For enabling it says "Navigate to Tools, Assets, then select GraphQL.". But GraphQL is not present in my case. I am using 6.5, Not sure what is missing.
BrijeshYadav
Level 5
Level 5

Hi Dipti,
GraphQL currently only available for AEM SDK or AEM as Cloud Service. GraphQL will be released for SP 6.5.10 or later.

 

Here you will find AEM SDK documentation for GraphQL api.
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...

 

See below screenshot for AEM SDK with GraphQL to my local instance 

BrijeshYadav_0-1625822685675.png