node postgres how to pass array 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']
]
);