dbRemoveQuery-methods: Performing a delete MongoDB query

Description Usage Arguments See Also Examples

Description

Send a json query to mongodb.

Usage

1
  dbRemoveQuery(rmongo.object, collection, query)

Arguments

rmongo.object

The RMongo object.

collection

The name of the collection the query is being performed upon.

query

A JSON string query. See http://www.mongodb.org/display/DOCS/Advanced+Queries for more information on the MongoDB query language.

See Also

mongoDbConnect

Examples

1
2
3
4
  mongo <- mongoDbConnect("test")
  output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar"}')  
  output <- dbRemoveQuery(mongo, 'test_data', '{"foo": "bar"}')
  print(output)

tc/RMongo documentation built on May 31, 2019, 7:27 a.m.