Expand my Community achievements bar.

SOLVED

Filter Content Fragments based on published status

Avatar

Level 4

Is there a way to achieve the below in GraphQL persisted queries:

1. Add a timestamp in the response of GraphQL persisted query based on the last published date and time of a CF. Rather than manually entering the field value, I want that to be picked automatically

2. Filter Content Fragments which gets published between a past time frame and the current timeframe.

Eg: Receiving a time frame as a parameter in query and filter all the CFs which gets published between the time frame received and the current time.

Please help.

Thanks.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @rakesh_h2 

 

I believe AEM GraphQL don't have this feature yet which can access Publish Timestamp from CRX node. It might come in future releases.

 

Hope this helps!

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @rakesh_h2 

 

I believe AEM GraphQL don't have this feature yet which can access Publish Timestamp from CRX node. It might come in future releases.

 

Hope this helps!

Avatar

Community Advisor

Hi @rakesh_h2  There is no OOTB way to cater this request, but you can make this work with the help of the custom implementation.

Steps:

1. Create a launcher to trigger a workflow to copy the published date at the time of publishing to copy the published date to a field within the CF.

2. Now create the query based on the copied field.

 

Hope this helps!

Thanks