I have a table
Visitor: (id, .., custom::jsonb[])
custom is an array of JSON objects of the form {field:string, value:string}. Example:
{"field": "apps_created", "value": "3"}
Say I want to find all the Visitors with 3 or more apps_created, how would I go about this? Note: every Visitor can have different fields and often there is not overlap with other visitors.
I've tried to consult the postgres documentation or other stackoverflow questions, but I have a hard time figuring out what functions/operators are used in this situation.
Any help is much appreciated