FirefuelBatch<T extends Serializable> class
Methods
-
commit()
→ Future<void>
-
Commits the current batch of transactions
override
-
create(T value)
→ Future<void>
-
Create a new document with an auto-generated DocumentId
override
-
createById({required T value, required DocumentId docId})
→ Future<void>
-
Create a new document with the provided
docId
override
-
delete(DocumentId docId)
→ Future<void>
-
Deletes the current document from the collection.
override
-
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
.
override
-
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
override
-
reset()
→ void
-
Creates a new batch without commiting the current transactions
override
-
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.
override
-
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.
override