1BSON_HAS_FIELD(3) libbson BSON_HAS_FIELD(3)
23
4
SYNOPSIS
6bool
7bson_has_field (const bson_t *bson, const char *key);
8
PARAMETERS
10• bson: A bson_t.
1112
• key: A string containing the name of the field to check for.
13
DESCRIPTION
15Checks to see if key contains an element named key. This also accepts
16"dotkey" notation such as "a.b.c.d".
17
RETURNS
19true if key was found within bson; otherwise false.
20
AUTHOR
22MongoDB, Inc
23
COPYRIGHT
252017-present, MongoDB, Inc
2627
28
29
30
1.25.1 Nov 08, 2023 BSON_HAS_FIELD(3)