Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

is it possible to query AEM page/assets content using GraphQL ?

Avatar

Level 5
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Ravi_Joshi ,

 

AEMaaCS provides OOTB Graphql API support for Content Fragments.

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-co... 

 

Recently it is also enabled in AEM 6.5 SP 10.

View solution in original post

8 Replies

Avatar

Correct answer by
Community Advisor

Hi @Ravi_Joshi ,

 

AEMaaCS provides OOTB Graphql API support for Content Fragments.

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-co... 

 

Recently it is also enabled in AEM 6.5 SP 10.

Avatar

Level 5

Hi Kishore,

 

That is correct. But I was thinking about an custom implementation to expose AEM page content over graphQL. Any thoughts on that ?

 

Thanks

Ravi Joshi

Avatar

Level 2

Hi @Ravi_Joshi ,

 

Did you manage to solve this? I think AEM still doesn't provide GraphQL endpoint for Assets, does it?

Have you written your custom implementation?

 

Thanks!

Avatar

Level 1

Hi @Abie,

 

Yes, AEM provides OOTB Graphql API support for Content Fragments only. To address this problem I have implemented a custom solution.

 

Avatar

Level 2

Hi @parag_19 ,

 

Can you share some insights or reference implementation for this?

 

Thanks!

Avatar

Level 5

Hi @Abie ,

 

Please find the GitHub URL. This implementation is really helpful.

https://github.com/zheng4uga/AEM-GraphQL 

 

For exposing the query results as a service we can use sling exporter which can accept the graphQL query as a request parameter and process it.

 

Please do let me know if there is anything.

 

Thanks,

Ravi