rmongodb: using $or in query
问题 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.cell": { $exists : true } }, {"person.home": { $exists : true } } ] }) I'd like to pull records where either person.cell is not null, or person.home is not null. I can query each individually, but cannot get data back when I create the buffer in rmongodb with the $or, the R code using rmongodb looks like this: l <- list("$exists"="true") buf