I have to use an SQL query like the one below in a Node.js app.
SELECT * FROM my_table
WHERE my_column IN ['name1','name2']
The array ['name1', 'name2'] is inputted by the user. And it may contain more than 2 names sometimes. How do I format this query using the pg-format package to avoid SQL injection?