SYNOPSIS

#include <bson.h>

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

DESCRIPTION

The bson_has_field() function shall return TRUE if bson contains an element named key.

RETURN VALUE

TRUE if key is found. Otherwise FALSE.

ERRORS

No errors are defined.

AUTHORS

This page was written by MongoDB, Inc.