db.query('INSERT INTO users(name,student_id) VALUES($1,ARRAY["$2","$3"]::INTEGER[]) RETURNING *', [data.name, data.id]) .then(function(user) { }) .catch(function(err) { return callback(null, err); })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)