SYNOPSIS

#include <bson.h>

bool
bson_append_bool (bson_t     *bson,
                  const char *key,
                  int         key_length,
                  bool value);

DESCRIPTION

The bson_append_bool() function shall append a new element to bson containing the boolean provided.

You may specify -1 for key_length if key is NULL terminated.

RETURN VALUE

TRUE if the element was appended to bson. Otherwise FALSE.

ERRORS

If appending the element would cause bson to grow past it’s maximum size, FALSE is returned and no modifications are made.

AUTHORS

This page was written by MongoDB, Inc.