Interface WriteTransactionResult

Provides information about the result of an operation on a document that was part of a write transaction.

The write transaction result can be one of the following types:

  • inserted
  • removed
  • evicted
  • updated

Please note that an upsert operation always results in the result type inserted, regardless of whether it resulted in an update or insert.

interface WriteTransactionResult {
    collectionName: string;
    docID: DocumentID;
    type: "removed" | "inserted" | "evicted" | "updated";
}

Properties

collectionName: string
docID: DocumentID
type: "removed" | "inserted" | "evicted" | "updated"