I have the following Documents
Food(Document)
title = fields.StringField()
type = fields.StringField()
Recipe(Document)
title = fields.StringField()
food = fields.ReferenceField(Food)
I would like to get the list of recipes whose food.type == "nonveg"
Can I do something like the following?
Recipe.objects.where(food__type="nonveg")
Thanks!