Class: DocumentChange

(abstract) ReactiveDb.DocumentChange

Abstract base class for representing a change on a document reported by a ReactiveDb.QueryNotification.

This base class essentially exposes methods to test the kind of change represented by this instance.

Members

(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:

Methods

isAcknowledgement() → {boolean}

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

Returns:
Type
boolean

isAddition() → {boolean}

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

Returns:
Type
boolean

isMove() → {boolean}

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

Returns:
Type
boolean

isRemoval() → {boolean}

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

Returns:
Type
boolean

isUpdate() → {boolean}

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

Returns:
Type
boolean
deprecated
Authentication
ServerlessDb
ReactiveDb