jeroen / mongolite

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

limit in find method #200

Open quotechltd opened 4 years ago

quotechltd commented 4 years ago

I've been using the package for a while with MongoDB and never had any issue. Today, I tried it on Azure Cosmos DB. Whilst I could connect to the collection and use the insert method easily, the find method kept returning an empty dataframe, till I realised that I had to change limit from its default of 0. con$find() always returns the full collection when used with MongoDB, whereas you need to set the limit at a number higher than the number of documents with Azure Cosmos DB. Am I missing something obvious? Thank you in advance.