Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (26 sloc) 835 Bytes
\title{Performing a delete MongoDB query}
Send a json query to mongodb.
dbRemoveQuery(rmongo.object, collection, query)
\item{rmongo.object}{The RMongo object.}
\item{collection}{The name of the collection the query is being performed upon.}
\item{query}{A JSON string query. See for more information on the MongoDB query language.}
mongo <- mongoDbConnect("test")
output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar"}')
output <- dbRemoveQuery(mongo, 'test_data', '{"foo": "bar"}')