aheckmann / gridfs-stream

Easily stream files to and from MongoDB
MIT License
615 stars 120 forks source link

db.open() is not a function #129

Open Kaushal28 opened 6 years ago

Kaushal28 commented 6 years ago

I'm following the example give in readme. But I'm getting error of db.open() is not a function. Please update the examples as per the new version on mongodb if it the version problem.

stelapo commented 6 years ago

Try:

db.on('open', function() { //do something });