escape mysql query in node.js returns error mysql is not defined
<p>Hello great Stackoverflow coders,I have tried to escape mysql query in node.js using mysql.escape(),pool.escape() but it returns error mysql or pool is not defined respectively.  below is the code</p>

<pre><code>var mysql=require('mysql');
exports.con = mysql.createConnection( {
// db connections goes here
 });


    sql.con.query("INSERT INTO `so_gb`(`user`, `neol`) VALUES ('"+mysql.escape(req.body.urt)+"','"+mysql.escape(req.body.mery)+"')", 
        function(err, user) {
            if(!err)
            {
</code></pre>