Postgresql – Sorting on a nested field in a jsonb object whose parent key can be multiple values
I have a field that is of type jsonb that is structured like: data: { "prices": { "[parent key]": { "price": 20, } } } 'parent key' can be 5 possible values but all I really need is the 'price'…