FirestoreGoogleAppsScript icon indicating copy to clipboard operation
FirestoreGoogleAppsScript copied to clipboard

Make updateDocument mask default to true

Open legenduzo opened this issue 2 years ago • 1 comments

Please consider making the mask in updateDocument(path, fields, mask = false) true instead of false.

By default the expectation of the end-user is that the fields specified in fields are updated and it comes as a rude shock if the whole document is overwritten and it's just their new update that is reflected.

Defaulting mask = true will be consistent with document updates, with the optional choice of overwriting the whole document by consciously setting it to false.

legenduzo avatar Dec 02 '23 13:12 legenduzo

upvote

Klieger avatar Dec 09 '24 03:12 Klieger