Query chaining with mongoose don't work

I am trying to pass the Chain Search Query Helpers to Narrow Search Results challenge but i fail. Here is my code

`const queryChain = (done) => {
const foodToSearch = “burrito”;

let chain = Person
.sort({name : ‘asc’})
.select({age : 0});

.exec((err, data) => {
    done(err, data);


Does anyone see what is wrong?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.