When subscribing mutliple queries, their results get crossed. Each scopedModel... returned in the Callback function carries the results of its query plus the results of the other queries.
Expected:
Scoped model "seniors" should only have 1 ocurrency of each person over 50 years old.
Actual Result:
In this case, scoped model "seniors" will contain people over 50, plus people over 50 that live in Lisbon, plus another copy of everyone that satisfies the first two queries.
The first query will return correctly.
The second one will have its own result plus the result from query one.
The third one will return the results from all three queries.
When subscribing mutliple queries, their results get crossed. Each scopedModel... returned in the Callback function carries the results of its query plus the results of the other queries.
Expected: Scoped model "seniors" should only have 1 ocurrency of each person over 50 years old.
Actual Result: In this case, scoped model "seniors" will contain people over 50, plus people over 50 that live in Lisbon, plus another copy of everyone that satisfies the first two queries.
The same happens if the queries are performed independently.
The first query will return correctly. The second one will have its own result plus the result from query one. The third one will return the results from all three queries.