mongoc_change_stream_error_document(3)

mongoc_change_stream_error_document3

Usage

bool
mongoc_change_stream_error_document (mongoc_change_stream_t *stream,
                                     bson_error_t *err,
                                     const bson_t **reply);

Checks if an error has occurred when creating or iterating over a change stream.

Similar to mongoc_cursor_error_document() if the error has occurred client-side then the reply will be set to an empty BSON document. If the error occurred server-side, reply is set to the server's reply document.

Parameters

•

stream: A mongoc_change_stream_t.

•

err: An optional location for a bson_error_t or NULL.

•

reply: A location for a bson_t.

Returns

A boolean indicating if there was an error.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.