Allow String to Timestamp conversion in Firestore rules
In Firestore rule, it could be very powerful to convert String containing date to Timestamp. For example, the RevenueCat extension store date as ISO 8601 string and we can't use them in firestore rule because date are not Timestamp.
In my Firestore rule, I would like to do something like :
timestamp.parse(collection.data.expires_date) > request.time
-
Enguerrand ARMINJON commented
I notice that inside the firebase console we can do collection.data.expires_date > request.time (will expires_date is a String) and in production that didn't work...
So the feature exist but not fully. Any way, I really believe a fix is really simple. Firebase is not open source and we can't contribute sadly...
-
Louis de Caumont commented
I have the same error. Please help ! My business also needs this feature !