I am trying to write a firebase rule to target all properties except one at a given location. The data is stored as follows
users: {
userId: {
property1: some_string,
property2: some_string,
property3: some_string
}
}
I want to create a read
rule that always allows reading property1
and allow reading property2
and property3
only if the user is authenticated.
How can I go about writing such a rule?
I guess I can write a rule for each property separately but I wanted to know if there is an easier way to capture all except few
use cases.