Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
kornel
Posts
Comments
DT
Drizzle Team
•
Created by kornel on 11/3/2023 in
#help
inArray() using sql`` operator in JS and Postgres
Hey, how do I use sql operator with arrays in JS?
const
array
=
[
1
,
2
,
3
];
const
sqlQuery
=
sql
`${
users
.
id
} IN ???`
;
const
array
=
[
1
,
2
,
3
];
const
sqlQuery
=
sql
`${
users
.
id
} IN ???`
;
3 replies