Mongoose multiple expression bug?
<p>I have my model like this</p>

<pre><code>var photosSchema = mongoose.Schema({
    username:{
        type: String
    },
    photo: {
        type: String
    },
    caption: {
        type: String
    },
    approved: {
        type: Number,
        default: 0
    }
});

var Photos = module.exports = mongoose.model('photos', photosSchema);

module.exports.getApprovedPhotos = function(username,callback){
Photos.find({username:username,approved:1}).sort({'_id':1}).exec(callback);
</code></pre>

<p>}</p>

<p>I want to get approved photo. I test it with POSTMAN</p>

<p><a href="https://i.stack.imgur.com/cPlBG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cPlBG.png" alt="enter image description here"></a></p>

<p>As you can see I have 2 object which its approved is 0, how come it can be appear in my fetch? Is this a bug in mongoose? or there's a problem in my query?</p>