Skip to content

Don't drop empty objects during merge #1202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 6, 2018
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Sep 5, 2018

We currently drop empty objects when during set({merge: true}) since we only add leaf nodes to the field mask. We need to consider an empty object a leaf node.

Fixes: #1168

@schmidt-sebastian schmidt-sebastian merged commit 0e1f6e5 into master Sep 6, 2018
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-emptymasks branch October 2, 2018 17:00
@firebase firebase locked and limited conversation to collaborators Oct 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firestore set with merge true, will remove empty inner objects
3 participants