I\'m pretty confused with the use of the select
method. This is how I use it, and it\'s wrong:
Transaction.find({username : user.username}).sele
selection & projection operation can be done in this way easyly in nodejs. Try this
var Selection={
: ,
:
//you can add many parameters here selection operation
};
var Projection = {
__v : false,
_id : false
//you can add many parameters here for projection
};
.find(Selection,Projection,function (err,data) {
if(err){
console.log(err);
}else{
console.log(data);
}
});