I'm trying to query Firestore documents by a Timestamp field (e.g. between a start and end date).
Timestamp field returns something like Timestamp(seconds=1599170400, nanoseconds=0)
.
I have a Unix timestamp (in seconds) in my app which I like to compare this to (using isLessThan:), but the value in Firestore apparently is inside this Timestamp object.
How would I go about comparing these two timestamps?
An alternative would be to query all documents and compare afterwards, but I would like to filter the documents in the query itself.