Callback is not a function in mongoose.find({})
<p>I am new to Node.js and mongoose, i am trying to query objects from a mongo collection using find({}) and the function is as follows :</p>

<pre><code>schema.statics.listAllQuizes = function listAllQuizes(){
Model.find({},function(err,quizes,cb){
    if(err){
        return cb(err);
    }else if(!quizes){
        return cb();
    }
    else {
        return cb(err,quizes);
    }
});};
</code></pre>

<p>But when i call this function i get an error saying</p>

<pre><code>        return cb(err,quizes);
               ^
        TypeError: cb is not a function
</code></pre>

<p>I am stuck at this point, can someone please help me with this, thanks in advance.</p>