There is an 'accounts' table with 'data'::jsonb field filled with:
{
"cars": [{"body": "E-JZA80-ALFQZ",
"year": 1999,
"brand": "Toyota",
"model": "Vista Ardeo"}
],
"name": "Gilbert Moore",
"phone": "+13222314555"
}
I trying something like:
select * from accounts where data->'cars' @> '{"brand":"Toyota"}'
But it doesn`t show the record. What a have missed?