Let's say I have model A, Model B and Model C
class ModelA(ModelB):
data = mongoengine.ReferenceField()
class ModelB(Document):
customer = mongoengine.ReferenceField(ModelC)
class ModelC(Document):
name = mongoengine.stringField()
I'm able to access this. models.ModelA.objects(customer=customer)
Now I'm trying to filter where customer.name is equal to a name I pass in. Is this possible with mongoengine filters?
I tried using this method but it wont work models.ModelA.objects(customer__name=name)