Answers for "knex.raw postgres how to add multiple parameters"

0

knex.raw postgres how to add multiple parameters

const query = `
SELECT * FROM users
WHERE users.id = :value1 AND users.email = :value2;
`

const params = {value1:userId, value2:userEmail}
const res = knex.raw(query, params)
Posted by: Guest on July-21-2021

Code answers related to "knex.raw postgres how to add multiple parameters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language