Mongo.Repo.stream
You're seeing just the callback
stream
, go back to Mongo.Repo module for more information.
Specs
stream(module :: module(), filter :: BSON.document(), opts :: Keyword.t()) :: Enumerable.t()
Selects documents for the collection defined in the given module and returns a stream of collection structs for the given filter
For all options see Options
Example
MyApp.Repo.stream(Post, %{title: title})
MyApp.Repo.stream(Post, %{title: title}, batch_size: 2)