| BSON_HAS_FIELD(3) | libbson | BSON_HAS_FIELD(3) |
bool bson_has_field (const bson_t *bson, const char *key);
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.
MongoDB, Inc
2009-present, MongoDB, Inc.
| May 7, 2025 | 1.30.4 |