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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -