DatabasesExtension extension
- on
-
- Databases
Methods
-
getDocumentFile(
) → dynamic - Gets a document as a file.
-
upsert(
{required String collectionId, required String documentId, required Map< String, dynamic> data}) → Future<Document> -
Performs an "upsert" operation which is to say that if a document doesn't
already exist, it will be created with the data provided.
Otherwise if it does exist, it gets updated with the data provided.
Returns a
Document
of the upserted docuemnt.