deleteTypedDocument abstract method

  1. @experimental
FutureOr<bool> deleteTypedDocument(
  1. TypedDocumentObject<Object> document, [
  2. ConcurrencyControl concurrencyControl = ConcurrencyControl.lastWriteWins
])

Deletes a typed document from this database, resolving conflicts through ConcurrencyControl.

When write operations are executed concurrently, the last writer will win by default. In this case the result is always true.

To fail on conflict instead, pass ConcurrencyControl.failOnConflict to concurrencyControl. In this case, if the document could not be deleted the result is false. On success it is true.

Implementation

@experimental
FutureOr<bool> deleteTypedDocument(
  TypedDocumentObject document, [
  ConcurrencyControl concurrencyControl = ConcurrencyControl.lastWriteWins,
]);