bson_iter_find_descendant(3)

bson_iter_find_descendant3

Usage

bool
bson_iter_find_descendant (bson_iter_t *iter,
                           const char *dotkey,
                           bson_iter_t *descendant);

Parameters

•

iter: A bson_iter_t.

•

dotkey: A dot-notation key like "a.b.c.d".

•

descendant: A bson_iter_t.

Overview

The bson_iter_find_descendant() function shall follow standard MongoDB dot notation to recurse into subdocuments. descendant will be initialized and advanced to the descendant. If false is returned, both iter and descendant should be considered invalid.

Returns

true is returned if the requested key was found. If not, false is returned and iter was exhausted and should now be considered invalid.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

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

Author

MongoDB, Inc

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