Indicates whether this stream is closed
Indicates whether this stream is closed
Returns a change stream that is filtered by the given predicate
Returns a change stream that is filtered by the given predicate
Calls the function for each received change.
Calls the function for each received change. If the document was added or updated,
it is passed along with its identifier, if it was deleted, only the identifier is
given.
The identifier of the registered handler is immediately returned to allow for later
unregistration.
If the stream is closed, the handler is not registered and the function returns -1
Unregisters the change handler identifier by the given identifier
Unregisters the change handler identifier by the given identifier
Alias for filter(f)
.
Alias for filter(f)
. this is intended to be used in for-comprehensions
The filtered change stream