© 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
•
3y ago
•
3 replies
Screw
Using arrayContains with a jsonb postgres type
arrayContains
(matches.teamA, [id])
arrayContains
(matches.teamA, [id])
teamA is a jsonb type of
string[]
string[]
i want to see if the id exists inside whats the best way of doing this
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
JsonB and $type
DT
Drizzle Team / help
11mo ago
Invalid Byte Encoding with Postgres JSONB columns
DT
Drizzle Team / help
2y ago
drizzle-zod not infering jsonb type properly
DT
Drizzle Team / help
2y ago
Making a key in a object with jsonb unique
DT
Drizzle Team / help
2y ago