I have the following query in my application
query = cls.query().filter(cls.taskgroup_id == taskgroup_id, cls.availability == True, cls.task_id > min_task_id).order(cls.task_id)
query.fetch(1)
Above works fine as expected. (Fetches only those entities, which match taskgroup_id, and is available, and task_id > min_task_id)
However, when I break query into multiple statements.
query = cls.query()
query.filter(cls.taskgroup_id == taskgroup_id)
query.filter(cls.availability == True)
query.filter(cls.task_id > min_task_id)
It doesn't work as expected.
When I run [2], query formation broken down into multiple statements, it returns me a entity whose availability is False, and task_id is equal to min_task_id.
[2] doesn't work as expected (or as I expect). I think there is a user error here. Wondering what it is.