prescottprue/cypress-firebase

feat(callFirestore): ability to use batch writes

janpansa opened this issue · 0 comments

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.