Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
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 TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

InArray Function not Working
Drizzle TeamDTDrizzle Team / help
3y ago
schemaFilter not working as expected
Drizzle TeamDTDrizzle Team / help
14mo ago
Drizzle-kit not working as expected
Drizzle TeamDTDrizzle Team / help
16mo ago
DrizzleKit "tablesFilter" not working as expected
Drizzle TeamDTDrizzle Team / help
2y ago