How to query jsonb arrays with IN operator
问题 I'm looking for a way to query postgres jsonb field with kind of "IN" clause inside an array. Let's assume I have a table CREATE TABLE test( id uuid, test_content jsonb, PRIMARY KEY(id) ); INSERT INTO test (id, test_content) VALUES ('aa82a8b8-33ef-4937-bd8c-8a4b40960f18', '[{"label":"a","label1":"1"},{"label":"b","label1":"2"}]'), ('ba82a8b8-33ef-4937-bd8c-8a4b40960f18', '[{"label":"c","label1":"3"}]'), ('da82a8b8-33ef-4937-bd8c-8a4b40960f18', '[{"label":"d","label1":"4"}]'); I need to select