DOKK / manpages / debian 10 / libbson-doc / bson_iter_find_descendant.3.en
BSON_ITER_FIND_DESCENDANT(3) Libbson BSON_ITER_FIND_DESCENDANT(3)

bson_iter_find_descendant - bson_iter_find_descendant()

bool
bson_iter_find_descendant (bson_iter_t *iter,

const char *dotkey,
bson_iter_t *descendant);


  • iter: A bson_iter_t.
  • dotkey: A dot-notation key like "a.b.c.d".
  • descendant: A bson_iter_t.

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.

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

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0