Closed zhezhang77 closed 2 years ago
Remove bracketed '`' to support syntax update(docPath, {'nested.path': updatedValue}, true)
. In the Web version v8 API, it is also the developer's responsibility to escape the field if he wants to update a filed which name contains dot.
firebase
.collection("users")
.doc(`${authUser}`)
.update({
[`Questions.Q11.${name}`]: { //<-- Update field 'Questions.Q11.XXXX'
text: name,
amount: Number(value),
EF: Number(ef),
},
});
I think the latest update wouldn't work since you are escaping the backquote, so developer can't really add them.
I think the latest update wouldn't work since you are escaping the backquote, so developer can't really add them.
Seems to need to fix the behaviour of 'Document.wrapMap()' at first. I will close the PR and then submit another one later.
Fix #146 Unable to update nested fields with custome mask in updateDocument()
The user can choose update a nested field with mask like
Or update a field with '.' (dot) in its name with mask quoted by ` like