Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

writeBatch

Creates a write batch, used for performing multiple writes as a single atomic operation. The maximum number of writes allowed in a single WriteBatch is 500.

Unlike transactions, write batches are persisted offline and therefore are preferable when you don't need to condition your writes on read data.

function writeBatch(firestore: Firestore): WriteBatch;
§
writeBatch(firestore: Firestore): WriteBatch
[src]

§Parameters

§
firestore: Firestore
[src]

§Return Type

§

A WriteBatch that can be used to atomically execute multiple writes.