-1
router.route("/card").post(function(req,res)
{
var response = {};
mongoOp.find({$and: [
{"Mycardid" : req.body.id},
{"Mycardtype" : "professional"}
]}.function(err, results){
console.log(results);
})
};
にクエリ結果を格納しながら、私はresult
変数にクエリ結果を保存しようとしているメートル。それは}]}.function(err, results)
の近くに私にエラーを与える。 mongoOp
が私の接続オブジェクトです。エラーはSyntaxError: missing) after argument list
です。なぜ私はこれを取得しているかについての任意の提案?にSyntaxError:欠落している)引数リストの後に(Node.jsの+ MongoDBの)変数