showing results for - "knex raw postgres how to add multiple parameters"
Emil
28 Feb 2019
1const query = `
2SELECT * FROM users
3WHERE users.id = :value1 AND users.email = :value2;
4`
5
6const params = {value1:userId, value2:userEmail}
7const res = knex.raw(query, params)