You can stream query results from MongoDB. You need to call the Query#cursor() function to return an instance of QueryCursor.
Please do not translate directly. I want to know what cursor is, what stream is and why to use it, thank you!
How to use mongoose to traverse a 1 million+mongodb tableShiedman’s answer below this post will see if it is helpful to you.