Closed jricaldi closed 8 years ago
I'm getting this too. Can't get it to work.
If I had to take a guess, the code provided isn't passing an instance of a query, but knex. The correct code would be something like:
recipesRest.get(function(req,res){
var sql = knex.select("r.id_recipe").from("recipe AS r");
knexnest(sql).then(function(data){
console.log(data);
res.json(JSON.parse(JSON.stringify(data)));
});
});
@MitMaro is correct and I've updated the README
I am implemented
but show me this error
TypeError: knexQuery.then is not a function