Querying a specific key and value in an array
I have a table "users" with a column "friends" that is of the type jsonb[]. Like this:
I want to fetch the users that have a friend with, for example, "john@mail.pt" as email.
I want to fetch the users that have a friend with, for example, "john@mail.pt" as email.