Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

GraphQLPersisted Query endpoint not working in Publisher

Avatar

Level 3

Hi All,

 

Can some one help me with below issue.

 

GraphQl persisted query endpoints aren't working in the publisher for me. To give an example when I hit below url to fetch list of all persisted queries . I get bundle name instead of query list. This issue is seen on publisher.

 

https://<aemhost:port>/graphql/list.json

 

{
    "sling:resourceSuperType""sling/bundle/resource",
    "servletClass""com.adobe.aem.graphql.impl.servlet.PersistedQueryServlet",
    "sling:resourceType""/graphql/list.servlet",
    "servletName""com.adobe.aem.graphql.impl.servlet.PersistedQueryServlet"
}
 
Regards,
Priya
1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi All, 

 

We have resolved this issue by adding "/graphQL/" in Servlet resolver path in the config "Apache Sling Servlet/Script Resolver and Error Handler" . 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

Hi All, 

 

We have resolved this issue by adding "/graphQL/" in Servlet resolver path in the config "Apache Sling Servlet/Script Resolver and Error Handler" .