var tempIds = [];
dpd.cars.post( {color:red, type:1}, function(res,err){
if(!err)
{
console.log(res.id); //the id ll be printed inthe console
tempIds.push(res.id)
}
})
console.log(tempIds); //still empty
me
variable is not appearing in the server side. Also tried using the fetch API with credentials:include
but then facing issues with CORS.
hi
please help
dpd -m "C:\Program Files\MongoDB\Server\4.2\bin\"
deployd CLI version 2.0.2
starting deployd
Failed to start MongoDB (Make sure 'mongod' are in your $PATH or use dpd --mongod option. Ref: http://docs.deployd.com/docs/basics/cli.html)