Suppose, I have this:
connection.query("something", data, function(err, res) {
console.log("inserted id is: " + res.insertId);
obj123.method1("something", function(res2) {
//how can I get access to res.insertId from here?
})
});
My question is in the code. And the 2nd one, how would I get access to "more global" "res" if I named the argument "res" instead of "res2"?