According to featureLayer.queryFeatures documentation FeatureLayer (legacy) | API Reference | ArcGIS API for JavaScript 3.23
It will somestimes do a client query when possible, problem is I need it to do a server query.
I'm doing a query using objectids instead of wheres, and I'm changing the spatialReference of the query.
But instead it gives me the cache'd one that has another spatialReference (webMercator), different from the one specified in the query object.
How can I force it to make a server query? Or solve the issue in any other way.
I don't even understand why it gives me mercator by default when the server specifies another SRID.