Arindam
unread,Sep 12, 2011, 3:27:49 AM9/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mongoose Node.JS ORM
Hi,
When I try to save my document, it does not get saved, does not throw
any error and the callback is not called back.
Before save I am printing and it shows, as follows,
{ address: 'test',
price: 12312,
bhk: 2,
_id: 4e6db32ec03084d01f000001,
create_date: Mon, 12 Sep 2011 07:22:22 GMT,
location: { lng: 92.93757389999996, lat: 26.2006043 },
prop_type: 'Apartment' }
just after that I try to save it as
rent.save(function(err){
console.log("rent.save start");
if(err) {
throw err;
console.log("error in save");
}
console.log("saved");
});
But it does not work.
Any clue ?
Arindam.