I\'m struggling to create a query using $or within R and rmongodb. What I\'d like to emulate is this from cmdline mongo:
db.people.find( { $or : [ {\"person
I found this query easier to wrangle in RMongo:
mongo <- mongoDbConnect(dbName="work", host="localhost",port='27017') result <- dbGetQuery(mongo, "people"," { '$or': [ {'person.cell':{'$exists':true}}, {'person.home':{'$exists':true}} ]}" )
Result will be a data.frame.
data.frame