I am no expert on MongoDB nor the mongodb_driver library but from a quick glance it seems that if you instead use the slightly higher-level functionMongo.find you get back a so-called cursor which is how (in MongoDB but also many other databases) you’re able to lazily iterate through a larger collection of documents.
It seems that this cursor result is a (lazy) iterator that supports using Elixir’s built-in Stream and Enum functions with it.






















