1BSON_HAS_FIELD(3)                   libbson                  BSON_HAS_FIELD(3)
2
3
4

SYNOPSIS

6          bool
7          bson_has_field (const bson_t *bson, const char *key);
8

PARAMETERS

10bson: A bson_t.
11
12key: A string containing the name of the field to check for.
13

DESCRIPTION

15       Checks  to  see if key contains an element named key. This also accepts
16       "dotkey" notation such as "a.b.c.d".
17

RETURNS

19       true if key was found within bson; otherwise false.
20

AUTHOR

22       MongoDB, Inc
23
25       2017-present, MongoDB, Inc
26
27
28
29
301.25.1                           Nov 08, 2023                BSON_HAS_FIELD(3)
Impressum