Closed buunguyen closed 9 years ago
+1
Hmmm... gridfs-stream
is compatible with Mongodb 2.0.x
and all unit tests seem to succeed... Can you add a test for this?
I created a bare bone repo here: https://github.com/buunguyen/gridfs-stream-issue. There's a single script which uses Mongoose 4.0 and gridfs-stream. Upon the call to findOne
, it throws the error I reported above. (I tried with both Node 0.10 and iojs.)
Thanks. I've added your test to the suite and fixed the issue... This is fixed in 1.1.1
Awesome, thank you!
Using
fineOne()
of gridfs-stream with Mongoose 4.0 throws the following error.It looks like Mongoose uses Mongo JS driver 2.0, which changes the signature of the
Collection
constructor where collection name is expected at the 4th position while gridfs-stream passes to the 2nd position. I wanted to submit a PR but am just not sure how to deal with the other parameters. Besides, I'm not sure if there's any other change.