PostgreSQL jsonb array of objects: how to filter by one of the fields and get the value of the other one
Suppose we have two columns: id, params. params is a jsonb column that contains arrays of objects like: [ { "prop": "a", "answer": "123" }, { "prop": "b", "answer": "456" } ] I need to create a query that returns…