I'm doing a query to fetch only 1 month old documents.
I store the creation time of the document itself
timestamp : 9 Apr, 2020 10:03:43 AM
Now, in my query , I want to get all the documents whithin the current month but I dont want to use currentDate from my client (so it cannot be changed) but also I dont want to query that document to find the timestamps of that document
Query
FirebaseFirestore.getInstance().collection("orders").whereEqualTo("shopId",shopId)
.whereEqualTo("status", 7).startAt().endAt().get().await()
I want to know an efficient server aproximation to set at .startAt().endAt()
to query just the documents with status 7 in which has past 1 month
any ideas?