Mongodb Native Driver "find" errors if there are more than 100 documents

117 Views Asked by At

I have a collection of 200 documents, when I'm using the "find" method I've got an error

MongoServerError: Cannot run getMore on cursor 5866951209337451201, which was created in session bcd516cd-227f-4df6-bc52-5aca331c08e9 - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=, without an lsid

But if I limit the number of returned documents to 100 it works fine.

0

There are 0 best solutions below