Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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

Avatar

Correct answer by
Community Advisor

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

7 Replies

Avatar

Community Advisor

Hi @bpeddapudi  

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

 

Thanks

Dipti

Avatar

Level 3
@Dipti_Cauhan is there any way that we can use GraphQL on our local instances?

Avatar

Correct answer by
Community Advisor

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

Avatar

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.

Avatar

Community Advisor

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

 

Avatar

Level 1

Any idea why the graphql doesnt work on publisher instance on AEM 6.5.11.0. Getting below error:

 

Could not create resource resolver

Cannot serve request to /content/cq:graphql/global/endpoint.schemaerrors on this server

Avatar

Level 2

Hi @BrijeshYadav @Dipti_Chauhan 

 

We need to create GraphQL endpoint to search assets (not Content Fragments). Is it possible to use OOTB endpoint for the same? 

If not, can you suggest what all needs to be implemented?

 

Thanks!