startAfter property

Map<String, Object>? startAfter
getter/setter pair

Directs watch to attempt starting a new change stream after the operation specified in the resume token. Allows notifications to resume after an invalidate event.

Each change stream event document includes a resume token as the _id field. Pass the entire _id field of the change event document that represents the operation you want to resume after.

startAfter is mutually exclusive with resumeAfter and startAtOperationTime

New in version 4.2.

Implementation

Map<String, Object>? startAfter;