mongo.bson.buffer.append.null: Append a double field onto a mongo.bson.buffer

Description Usage Arguments Value See Also Examples

View source: R/bson.R

Description

Append a NULL value onto a mongo.bson.buffer.

Usage

1

Arguments

buf

(mongo.bson.buffer) The buffer object to which to append.

name

(string) The name (key) of the field appended to the buffer.

Value

TRUE if successful; otherwise, FALSE if an error occured appending the data.

See Also

mongo.bson,
mongo.bson.buffer,
mongo.bson.buffer.append.

Examples

1
2
3
4
5
buf <- mongo.bson.buffer.create()
mongo.bson.buffer.append.null(buf, "Nil")
b <- mongo.bson.from.buffer(buf)

# The above produces a BSON object of the form { "Nil" : NULL }

jonkatz2/rmongodb documentation built on May 19, 2019, 7:30 p.m.