Firestore - batch.add is not a function

前端 未结 6 1141
滥情空心
滥情空心 2020-12-24 10:31

The documentation for Firestore batch writes lists only set(), update() and delete() as permitted operations.

Is there no way

6条回答
  •  盖世英雄少女心
    2020-12-24 11:07

    According to the docs

    Behind the scenes, .add(...) and .doc().set(...) are completely equivalent, so you can use whichever is more convenient.

    Perhaps this applies to batches as well?

提交回复
热议问题