-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'stream' of undefined #9
Comments
Hi 👋 As you can see, the exception is in You copy past a line from the const stream = db.collection(inputDBConfig.collection).find().stream(); Your code const stream = MyModel.find().lean().stream(); As you can see the error happens before
You should dig around Maybe you can try to pipe to process.stdout stream if you want to make sure your code works before piping into |
I put the |
You're correct - mongoose is not able initialize the stream. Will have check mongoose doc. |
Ho! You are right! Is it possible that you open a PR to update the documentation when you'll find a solution ? 🤔 |
Hi @vishalgakhare did you find a solution? |
Sorry @fabienjuif . I was on vacation, so responding late. The mongoose has replaced |
@vishalgakhare can you share a gist of your solution here? of how did you used |
Trying out in local where nodeJS = v8.0.0, Mongo DB = 3.6.3
Error:
The code is same as given in readme markdown.
The text was updated successfully, but these errors were encountered: