Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Author

       MongoDB, Inc

Description

       Fetches the key for the current element observed by iter.

Parameters

       • iter: A bson_iter_t.

Returns

       A string which should not be modified or freed.

       SEEALSO:bson_iter_key_len() to retrieve the length of the key in constant time.

Synopsis

          const char *
          bson_iter_key (const bson_iter_t *iter);

See Also