Skip to content
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

Firestore plugin: support for merge:true in setData() #13537

Closed
bjornbjorn opened this issue Dec 13, 2017 · 3 comments
Closed

Firestore plugin: support for merge:true in setData() #13537

bjornbjorn opened this issue Dec 13, 2017 · 3 comments

Comments

@bjornbjorn
Copy link

bjornbjorn commented Dec 13, 2017

From the Firestore docs:

If the document does exist, its contents will be overwritten with the newly provided data, unless you specify that the data should be merged into the existing document, as follows:

https://firebase.google.com/docs/firestore/manage-data/add-data#set_a_document

var cityRef = db.collection('cities').doc('BJ');

var setWithMerge = cityRef.set({
    capital: true
}, { merge: true });

Please add this feature to Flutter's Firestore plugin.

@jonasbark
Copy link

jonasbark commented Dec 13, 2017

flutter/plugins@2b89c20
it was added 8 days ago.

@bjornbjorn
Copy link
Author

bjornbjorn commented Dec 13, 2017

Aha, sorry - I missed that!

Closing this issue then. Thanks @jonasbark

@github-actions
Copy link

github-actions bot commented Sep 4, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants