I have a model, which has JSON field called data. I need to query all models, which have type in this data field, which starts with string gpa.
Corresponding query is:
select data ->> 'type' from model where data ->> 'type' like 'gpa.%'
How can I do this using querysets? All I could find is an exact match, not startswith. I am using django 1.18