Description Usage Arguments See Also Examples
Insert a json character object into the mongodb collection.
1 | dbInsertDocument(rmongo.object, collection, doc)
|
rmongo.object |
The RMongo object. |
collection |
The name of the collection the document is being inserted into. |
doc |
A JSON string document. |
1 2 3 | mongo <- mongoDbConnect("test")
output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar"}')
dbDisconnect(mongo)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.