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 this is intentional behavior, but I wanted to alert you all to it. I think it would make most sense to match MongoDB's errors.
The query is intentionally malformed.
varSample=mongoose.model('Sample',{text : String,val : Number});varsample=newSample({text : "Hello",val : 100});sample.save(function(err){if(err)console.log(err);});Sample.find(45,function(err,results){console.log(err);// should throw error (MongoDB does)console.log(results);// should be null. currently returns all});
The text was updated successfully, but these errors were encountered:
vkarpov15
added
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
and removed
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
labels
Dec 1, 2017
Not sure if this is intentional behavior, but I wanted to alert you all to it. I think it would make most sense to match MongoDB's errors.
The query is intentionally malformed.
The text was updated successfully, but these errors were encountered: