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.15.2 Nov 06, 2019 BSON_HAS_FIELD(3)