I need to check is property exists in document in store.
allow update, delete: if resource.data.uid;
in code above i have error "Property uid is undefined on object.", so how i can check is uid
in data?
To check if the document contains a specific field, I use in
:
allow update, delete: if 'uid' in resource.data;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With