mongoose - Posting to a MongooseDB with .create -
so trying simple list work , update mongoosedb. using own variables determined. here code:
app.post("/forumdetailsheader", function (req, res){ forumdetail.create({ text: req.body.text, done: false }, function(err, detail){ if (err) res.send(err); }); });
everything working , getting called correctly, except never show in mongoosedb has posted there correctly.
Comments
Post a Comment