Batch<T extends Serializable> class abstract

Implemented types
Implementers

Constructors

Batch(FirefuelCollection<T> collection)

Properties

collection FirefuelCollection<T>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

commit() Future<void>
Commits the current batch of transactions
create(T value) Future<void>
Create a new document with an auto-generated DocumentId
inherited
createById({required T value, required DocumentId docId}) Future<void>
Create a new document with the provided docId
inherited
delete(DocumentId docId) Future<void>
Deletes the current document from the collection.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace({required DocumentId docId, required T value}) Future<void>
Replaces the document at docId with value.
inherited
replaceFields({required DocumentId docId, required T value, required List<String> fieldPaths}) Future<void>
Replaces the fields of the document at docId with the matching fieldPaths from value
inherited
reset() → void
Creates a new batch without commiting the current transactions
toString() String
A string representation of this object.
inherited
update({required DocumentId docId, required T value}) Future<void>
Updates data on the document. Data will be merged with any existing document data.
inherited
updateOrCreate({required DocumentId docId, required T value}) Future<void>
Updates data on the document if it exists. Data will be merged with any existing document data.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited