In my situation, I need to read random posts of the last 48hours. I have seen the method where we need to create a random id and query with isGreaterThanOrEqualTo
range to get random posts. But I also need to use it for the timestamp. As I know, Firestore doesn't let range queries on different fields in one query. How can I get random posts of the last 48hours?
--- posts (collection)
| |
| --- postid (documents)
| |
| --- country_code: "TR"
| |
| --- timestamp: "Server.Timestamp"
| |
| --- post_text: "Some Text"