0

How I wrote

var staff=[1,2,3];
await client.query(
    "SELECT user_id FROM group_user WHERE user_id IN($1)",
    staffs
);

Throws error that only one parameter need to be given

Sven Eberth
  • 3,057
  • 12
  • 24
  • 29
  • 1
    You can find some options [here](https://stackoverflow.com/q/10720420) for node-postgres. – Ryan Jul 02 '21 at 11:44

1 Answers1

0

Can you try this?

`SELECT user_id FROM group_user WHERE user_id in (${ids})`