How to query for "has value" e.g a date that is filled in

The api documentation for date predicates describe various ways to query dates - before/after certain times etc. I would like a query that would return documents that have a particular custom date field that is filled out - i.e. not null.

How do I construct this query?

I am looking for something like

[date.notNull(my.article.release-date)]

Hi Team,

The has predicate should be exactly what you're looking for:

[has(my.article.release-date)]

Thanks and let us know if you have any questions about this :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.