Is it possible to use LIKE operator for single key/value inside array of objects for jsonb field in PostgreSQL 9.4? For example I have:
id | body
------------------------------------------------------------
1 | {"products": [{"name": "qwe", "description": "asd"}, {"name": "zxc", "description": "vbn"}]}
I know, I can get a product
with something like this:
select * from table where 'body'->'products' @> '[{"name": "qwe"}]'::jsonb
The question is: can I get this product if I don't know full name of it?