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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -