-
Notifications
You must be signed in to change notification settings - Fork 875
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
FR: Method to combine two firestore WriteBatch #2004
Labels
Comments
SamyPesse
changed the title
FR: Combine two firestore WriteBatch
FR: Method to combine two firestore WriteBatch
Jul 17, 2019
@SamyPesse Thanks for filing this issue. We currently don't expose this functionality, and we will discuss internally if this is something that we should add to our API. For now, you can achieve the desired result by passing an already instantiated WriteBatch to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It'd be great if
firestore.WriteBatch
had amerge(batch: firebase.firestore.WriteBatch)
method.The goal is to have utility methods that can return a batch. Before committing, those batches could be merged together.
(It looks like a basic implementation will be to concat the
batch. _mutations
).The text was updated successfully, but these errors were encountered: