I'm using postgreSQL as my database for node.js app, I'm given an array of id's for example ["1","2","3"], and I want to query only users that their id is include in this array so it going like this
if (ids){
users = await pool.query(`SELECT * FROM users WHERE id IN ($1:csv)`, [members])
}
I'm using pool.query on nodejs, but this command shown here is not working so I don't exactly knows how to do that, thanks for any help