node js postgres query dynamic parameters code example
Example: node pg array in
client.query(
"SELECT * FROM stooges WHERE name = ANY ($1)", [
['larry', 'curly', 'moe']
]
);
client.query(
"SELECT * FROM stooges WHERE name = ANY ($1)", [
['larry', 'curly', 'moe']
]
);