Let's say I have the table food_articles, which has the following columns: name(type ="text") and ingredients(type="jsonb[]"), where the ingredient jsonb object looks like this:
{
ingredient_id: 'string',
quantity: 'number'
}
How would I create a query that returns all rows in food_articles that has the ingredient_id = 1337 in the ingredients jsonb array?