Provided by: libbson-doc_1.13.1-1_all
bson_has_field - bson_has_field()
bool bson_has_field (const bson_t *bson, const char *key);
· bson: A bson_t. · key: A string containing the name of the field to check for.
Checks to see if key contains an element named key. This also accepts "dotkey" notation such as "a.b.c.d".
true if key was found within bson; otherwise false.
2017-present, MongoDB, Inc