I'm having an error trying to run a filter on the database.
var params = '{"cd_entidade":"'+ vcd_entidade+'"}';
Movmaterial.find(params).toArray(function(err,docs){
if (err) throw err;
console.log(docs);
}
There was an error that I can not solve, it already has two days :( can you help me? I am creating a personal project for studies of the use of mongodb, thanks in advance