bson_has_field - bson_has_field()

NAME  SYNOPSIS  PARAMETERS  DESCRIPTION  RETURNS  AUTHOR  COPYRIGHT 

NAME

bson_has_field − bson_has_field()

SYNOPSIS

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

PARAMETERS

bson: A bson_t.

key: A string containing the name of the field to check for.

DESCRIPTION

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

RETURNS

true if key was found within bson; otherwise false.

AUTHOR

MongoDB, Inc

COPYRIGHT

2017-present, MongoDB, Inc


Updated 2024-01-29 - jenkler.se | uex.se