I have a JSONB column,
count = db.Column(JSONB)
Stored in this column is an array of json objects,
[{'uuid':'xxx-xxx-xxxx', 'bwl_click_count':'5'},{'uuid':'xxx-xxx-yyyy', 'bwl_click_count':'18'} ...]
I've tried querying it several ways, and can't find any way to extract a specific uuid from the list. I tried the following,
db.session.query(bwl_value).filter(bwl_value.bwl_count["uuid"].astext == "xxx-xxx-xyyyxxx").all()
but this returns an empty array.
Can anyone suggest a way to do this?
Thanks in advance!