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

feat(callFirestore): ability to use batch writes #724

Open
janpansa opened this issue Nov 30, 2022 · 0 comments
Open

feat(callFirestore): ability to use batch writes #724

janpansa opened this issue Nov 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@janpansa
Copy link

janpansa commented Nov 30, 2022

Describe the solution you'd like

I would like to make use of batch writes e.g.

firestore.batch()

and

batch().set(ref, {})
batch().update(ref, {})

and

batch().commit()

We need this when seeding the database with some of our tests, for example, 600 documents needs to be stored in a collection that will then be tested on the front end with cypress.

Describe alternatives you've considered

The only alternative is to run them one by one, which could be problamatic and make firebase unresponsive.

@prescottprue prescottprue added the enhancement New feature or request label Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants