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

AEM Cloud: Headless query to graphQL with date filter (not less that current day)

Avatar

Level 2

Hi,

Can I create a query in graphql, persisted, where I can ask for a date greater than if equal to today?

 

We have CFs that have dates that sometimes go older than today, and we want to filter them out in a graphQL query.

 

Is this possible?

 

Thanks

Joel

1 Reply

Avatar

Level 2

I see docs on graphql that talk about using resolvers to provide better queries.

https://graphql.org/learn/execution/

 

I don't think graphql is the best for our purposes. I am considering a totally different DB that provides SQL, Non-relational, or  querying the JCR directly from Java.

 

Problem is we want part of the query to be specified from auth/dialog. JCR query may be the way to go.

 

So in auth they would specify (for ex) Event name, startDate, which would be stored in content fragments, and we want to query Events starting after today.

 

Suggestions welcome.