Using arrayContains with a jsonb postgres type
teamA is a jsonb type of
string[]
i want to see if the id exists inside whats the best way of doing this1 Reply
Well, you can use the arrayContains method.
You can ignore the error, it'll work.
I used
@ts-expect-error
and explaind why the error was expected.
Maybe, I'll make a PR to make it accept JSONB
columns as well.
What do you think? @Andrew Sherman