I have a problem with knex.js
how to call stored procedure with output in knex.js
sp string : call sp_start(1, @outmsg);
I need call that SP and select the output in return
my code:
.get('/:headerId/recount', function(req, res, next) {
knex.raw(
'Call sp_start(?,?)',[req.params.headerId, @outmsg]
)
.then(function(result) {
return;
});
})
but it return error