Skip to content

Update method from withReference document should be same as set method #6223

Discussion options

You must be logged in to vote

update is for partial object update. More specifically, with update, we may want just change the title:

moviesRef.doc(id).update({ 'title': 'New title' });

This is not feasible if update receives a class as a parameter. If it did, that would make update identical to set.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by happyharis
Comment options

You must be logged in to vote
1 reply
@rrousselGit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants