Django JSONField - a PostgreSQL specific field Querying data nested in dictionaries

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

Get all ice cream cones that were ordered by people liking chocolate:

IceCream.objects.filter(metadata__buyer__favorite_flavor='chocolate')

See the note in the "Remarks" section about chaining queries.



Got any Django Question?