1BSON_HAS_FIELD(3) libbson BSON_HAS_FIELD(3)
2
3
4
6 bson_has_field - bson_has_field()
7
9 bool
10 bson_has_field (const bson_t *bson, const char *key);
11
13 • bson: A bson_t.
14
15 • key: A string containing the name of the field to check for.
16
18 Checks to see if key contains an element named key. This also accepts
19 "dotkey" notation such as "a.b.c.d".
20
22 true if key was found within bson; otherwise false.
23
25 MongoDB, Inc
26
28 2017-present, MongoDB, Inc
29
30
31
32
331.20.0 Nov 18, 2021 BSON_HAS_FIELD(3)