Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between allow write and allow create update in Firebase database rules

Could anyone tell me what is the difference between allow write and allow create update in writing conditions for Cloud Firestore Security Rules?

like image 561
amstriker Avatar asked Nov 27 '19 01:11

amstriker


1 Answers

This is covered in the documentation for granular operations.

write is exactly equivalent to the combination of create, update, and delete. If you allow write, you are implicitly allowing all three more specific permissions. If you allow only create and update, it does not allow documents to be deleted.

like image 114
Doug Stevenson Avatar answered Oct 21 '22 02:10

Doug Stevenson