I have to update a single field in an existed Firestore document.
However, I don't know if there is some difference between using
admin.firestore().doc('doc_id').set({name:'Bill'},{ merge: true })
or
admin.firestore().doc('doc_id').update({name:'Bill'})
If the document is:
{
name: Bart,
age: 18
}
Should .update(...) just update the field and not remove the field "age" in this case?