Search
Get Started
DT
Drizzle Team
•
3y ago
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,794
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
string[]
string[]
arrayContains
(matches.teamA, [id])
arrayContains
(matches.teamA, [id])
Similar Threads
JsonB and $type
DT
Drizzle Team / help
9mo ago
Invalid Byte Encoding with Postgres JSONB columns
DT
Drizzle Team / help
16mo 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