Closed jbenavv closed 4 years ago
You need to pass a third argument with the value of true
to not overwrite.
var data = { "Spaceid": e.space.name, "Message": input, "Trigger": number, };
firestore.updateDocument(path, data, true);
I found the solution in this case https://github.com/grahamearley/FirestoreGoogleAppsScript/issues/23
Just add a boolean parameter in firestore.updateDocument (path, data, true);
My only suggestion is to add a help example to the new users.
My general opinion as a new user of this library is that it is very good and practical.
Hi, I'm not sure if it's a failure, but when I try to update specific fields, it deletes the ones that already exist.
Before:
var data = { "Spaceid": e.space.name, "Message": input, "Trigger": number, };
firestore.updateDocument(path, data);Later: