Postgresql – Filter JSON values at least one key is in a given array and has a given value
I want to run a query towards PostgreSQL where any attribute in a JSON body matching a list of attribute names should equal a given value. The input: names: ["foo", "bar"], value: 'hello' should render a query such as SELECT…