Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
Drizzle Team
β’
16mo ago
β’
38 replies
tcurdt
inArray not working as expected
This works but looks like a
(sql injection
)
const tagsArray
= selectedTags
.map
(
(tag
)
=
>
'${tag}'
'${tag}'
)
.join
(
'
,
'
)
;
where
.push
(sql
${tagData.tags} @> ARRAY[${sql.raw(tagsArray)}]::text[]
${tagData.tags} @> ARRAY[${sql.raw(tagsArray)}]::text[]
)
;
Why doesn
't this just work
(tm
)
?
where
.push
(inArray
(tagData
.tags
, selectedTags
)
)
;
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
InArray Function not Working
DT
Drizzle Team / help
3y ago
schemaFilter not working as expected
DT
Drizzle Team / help
14mo ago
Drizzle-kit not working as expected
DT
Drizzle Team / help
16mo ago
DrizzleKit "tablesFilter" not working as expected
DT
Drizzle Team / help
2y ago