jeroen / mongolite

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

insertMany? #245

Closed dmenne closed 1 year ago

dmenne commented 1 year ago

I could not find the equivalent to insertMany for a file like this:

s = '[
   { item: "journal"},
   { item: "notebook}
]'

Workaround is to parse with jsonlite and iterate with insert, but maybe I missed something?

jeroen commented 1 year ago

If you insert a list or dataframe object, it will automatically use insertmany