newIndex property

int get newIndex

The index of the changed document in the result set immediately after this DocumentChange (i.e. supposing that all prior DocumentChange objects and the current DocumentChange object have been applied).

-1 is returned for DocumentChangeType.removed events.

Implementation

int get newIndex;