You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if it is a bug or by design, but query middleware is ignored for .cursor() calls. If it's by design it should be mentioned in the docs.
Expected behavior would be the same query for either call.
Current behavior is (with test script below):
find(): Mongoose: tests.find({ b: true }, { fields: {} })
find().cursor(): Mongoose: tests.find({ isB: true }, { retainKeyOrder: false, fields: {} })
Not sure if it is a bug or by design, but query middleware is ignored for
.cursor()
calls. If it's by design it should be mentioned in the docs.Expected behavior would be the same query for either call.
Current behavior is (with test script below):
find():
Mongoose: tests.find({ b: true }, { fields: {} })
find().cursor():
Mongoose: tests.find({ isB: true }, { retainKeyOrder: false, fields: {} })
using
node.js v6.9.5
mongoose v4.9.1
mongodb v3.4.1
The text was updated successfully, but these errors were encountered: