SYNOPSIS

#include <bson.h>

bool
bson_append_dbpointer (bson_t           *bson,
                       const char       *key,
                       int               key_length,
                       const char       *collection,
                       const bson_oid_t *oid);

DESCRIPTION

The dbpointer field type is DEPRECATED and should only be used when interacting with legacy systems.

The bson_append_dbpointer() function shall append a dbpointer element to a bson document.

New code should use Database References instead of the dbpointer element type.

RETURN VALUE

TRUE if successful. Otherwise FALSE.

ERRORS

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

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.