Using a placeholder with an inArray
I'm porting a query to a prepared statement, in the query I used to do something like:
After trying to move it to a prepared statement:
However, when I execute the pepared statement and pass
After trying to move it to a prepared statement:
However, when I execute the pepared statement and pass
{ userIds: ['abc', 'def'] } I get a syntax error: PostgresError: syntax error at or near "$1"