finsweet/fireworkers

update action will clear all other fields except the ones provided

Closed this issue · 1 comments

If todos has fileds: name, completed, createdTime ... etc

const updatedTodo = await Firestore.update(db, 'todos', 'aDyjLiTViX1G7HyF74Ax', {
  completed: false,
});

executing the above code will clear the name, createdTime fields, result in this todo document has only one field: completed.

I believe you missed the updateMask.fieldPaths=completed query parameter

This should now be fixed in #21, notice that the fix required a breaking change.