Mongo Embedded Document Query
问题 I've 2 DynamicDocuments: class Tasks(db.DynamicDocument): task_id = db.UUIDField(primary_key=True,default=uuid.uuid4) name = db.StringField() flag = db.IntField() class UserTasks(db.DynamicDocument): user_id = db.ReferenceField('User') tasks = db.ListField(db.ReferenceField('Tasks'),default=list) I want to filter the UserTasks document by checking whether the flag value (from Tasks Document) of the given task_id is 0 or 1 , given the task_id and user_id. So I query in the following way:- obj