Hi Community,
I am working on a query app that executes a query based on a condition. I am using the following sample code example for reference purpose : https://developers.arcgis.com/javascript/latest/sample-code/query/
The query app that I am working on seems to work fine as am getting correct number of records for a particular query that gets executed however, the issue is the features are not being returned correctly.
Initially, when I set the same query in map viewer (red dots) and in the application (green dots) features are returned correctly as shown in the first two figures 1 & 2 however, if I change the query in the application and and in map viewer discrepancy is observed as shown in the last two figures 3 & 4.




I am not sure what am I missing here and why features are not being correctly. Any inputs on this would be helpful.