jeroen / mongolite

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

Custom handlers #125

Closed dselivanov closed 6 years ago

dselivanov commented 6 years ago

Hi Jeroen. Thanks for amazing work. There are couple of issues with custom handlers:

  1. there is no documentation about how to use them
  2. according to the source codemongo_stream_in always performs post processing and coercion to a data.frame

Is it possible to skip these steps and return each record just as a list?

jeroen commented 6 years ago

I think what you want is an iterator: https://jeroen.github.io/mongolite/query-data.html#iterating

dselivanov commented 6 years ago

Oh, sorry, missed that. Perfect!