Class: DocumentRemoval

ReactiveDb.DocumentRemoval

Represents the removal of a document from a query.

A document removal may occur in a query if either the document is deleted from the database or updated so that it is no longer matched by the query. For now, these cases cannot be simply distinguished.

Extends

Members

(readonly) at :number

Rank of the document removed from the query (in the document list associated with the query) BEFORE its removal.

Type:
  • number

(readonly) doc :ReactiveDb.Document

Document associated with this instance.

It represents the state of the document just after the change, except for document removals where it represents its state juste before its removal from the query.

Type:
Overrides:

Methods

isAcknowledgement() → {boolean}

Checks whether this instance represents the acknowledgement of a document within a query.

Overrides:
Returns:
Type
boolean

isAddition() → {boolean}

Checks whether this instance represents the addition of a document into a query.

Overrides:
Returns:
Type
boolean

isMove() → {boolean}

Checks whether this instance represents the move of a document within a query.

Overrides:
Returns:
Type
boolean

isRemoval() → {boolean}

Checks whether this instance represents the removal of a document from a query.

Overrides:
Returns:
Type
boolean

isUpdate() → {boolean}

Checks whether this instance represents the update of a document within a query.

Overrides:
Returns:
Type
boolean
deprecated
Authentication
ServerlessDb
ReactiveDb