Provided by: libmongoc-doc_2.2.1-1_all 

SYNOPSIS
const bson_t *
mongoc_client_session_get_cluster_time (const mongoc_client_session_t *session);
Get the session's clusterTime as a BSON document.
PARAMETERS
• session: A mongoc_client_session_t <>.
RETURNS
If the session has not been used for any operation and mongoc_client_session_advance_cluster_time() <>
has not been called, a bson_t <https://www.mongoc.org/libbson/current/bson_t.html> that is valid only for
the lifetime of session. Otherwise, NULL.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 MONGOC_CLIENT_SESSION_GET_CLUSTER_TIME(3)