showing results for - "how to log knex raw query"
Juan Martín
22 Mar 2019
1const query = `
2SELECT * FROM users
3WHERE users.id = :value1 AND users.email = :value2;
4`
5
6const params = {value1:userId, value2:userEmail}
7
8console.log(db.raw(query, params).toString())