Class WriteBatch (3.7.3)

Stay organized with collections Save and categorize content based on your preferences.
public class WriteBatch extends UpdateBuilder<WriteBatch>

A Firestore WriteBatch that can be used to atomically commit multiple write operations at once. See Also: Firestore#batch()

Inheritance

java.lang.Object > UpdateBuilder > WriteBatch

Methods

commit()

public ApiFuture<List<WriteResult>> commit()

Applies the current WriteBatch and returns an array with WriteResults.

Returns
TypeDescription
ApiFuture<List<WriteResult>>

ApiFuture with a List of WriteResults