jeroen / mongolite

Fast and Simple MongoDB Client for R
https://jeroen.github.io/mongolite/
284 stars 64 forks source link

Use dplyr-like query syntax on MongoDB? #221

Open dcaud opened 3 years ago

dcaud commented 3 years ago

Is it possible, with mongolite or another package to use dplyr syntax. I was thinking something like:

premium_diamonds <- dmd %>%
   filter(cut == "Premium",
            price < 1000)

instead of this:

premium_diamonds <- dmd$find('{"cut" : "Premium", "price" : { "$lt" : 1000 } }')