Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Graphql query to get the latest published page


Level 1



My use to get the latest 5 content fragments using the graph ql, I have used the jcr:lastModified in the query but its throwing the error. Pls suggest how to get the latest content fragments as per the published date.

4 Replies


Community Advisor

Hi @niharikamalireddi 

Can you share the query you are using to fetch CF based on published date.


Community Advisor

Hello @niharikamalireddi 


For any date type fields, the format to be followed is




Ref: AEM GraphQL API for use with Content Fragments | Adobe Experience Manager


Related thread: Solved: GraphQL query list order by latest modified date - Adobe Experience League Community - 45111...

Aanchal Sikka



@niharikamalireddi  Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni