Description Usage Details Value See Also Examples
Define shorthand names for BSON and GridFS functions and constants.
1 |
All symbols dealing with BSON and GridFS are defined by this function excluding the "mongo." prefix. They will still be available by the orginal names also. For clarity, the symbols in the mongo module (for communication with the server) are not shortened.
TRUE
mongo.bson,
mongo.gridfs,
mongo.bson.buffer.create
,
mongo.bson.buffer.append
,
mongo.bson.from.buffer
.
1 2 3 4 | mongo.shorthand()
buf <- bson.buffer.create()
bson.buffer.append(buf, "name", "Alice")
b <- bson.from.buffer(buf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.