table of contents
| BSON_HAS_FIELD(3) | Library Functions Manual | BSON_HAS_FIELD(3) |
NAME¶
bson_has_field() - Checks to see if key contains an element named key. This also accepts "dotkey" notation such as "a.b.c.d".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 keyRETURNS¶
true if key was found within bson ; otherwise false.COLOPHON¶
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.| 2016‐10‐12 | libbson |