SYNOPSIS

#include <bson.h>

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

DESCRIPTION

The bson_append_undefined() function shall append a new element to bson of type BSON_TYPE_UNDEFINED. Undefined is common in Javascript. However, this element type is deprecated and should not be used in new code.

RETURN VALUE

TRUE if successful. Otherwise FALSE and no modifications are made.

ERRORS

FALSE is returned if there was insufficient space to append the element.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.