Ubuntu Manpages

  • stream: A mongoc_change_stream_t.

A bson_t that should not be modified or freed.

Returns NULL if no resume token is available. This is possible if the change stream has not been iterated and neither resumeAfter nor startAfter options were specified in the watch function.

The returned bson_t is valid for the lifetime of stream and its data may be updated if mongoc_change_stream_next() is called after this function. The value may be copied to extend its lifetime or preserve the current resume token.

MongoDB, Inc

2017-present, MongoDB, Inc