I use mongoengine 0.15.0. In my Inventory Models, there is an ListField 'fruit' that contains EmbeddedDocumentField 'EmbedFruit'. Each EmbedFruit item has 'color' field. I want to access the first item in the ListField.
Can I achieve it by:
result_object = Inventory.objects(__raw__={
'fruit.0.color': 'red',
}).first()