"Null value error" in firestore simulator
A bit more explanation would have made manidos's answer a good one.
It seems like resources
should be used only for rules involving data that have been already written; e.g. delete
, read
, update
, etc.
If you want to set rules on data that "will be" written, use getAfter
.
The problem is that there's no actual document at /cities/moscow