When setting up a queryTask, what's the difference between queryTask.execute() and queryTask.executeForIds()?
In ESRI's JS API Reference, they have the exact same descriptions:
execute(parameters,callback?,errback?)
Executes a Query against an ArcGIS Server map layer. The result is returned as a FeatureSet. If the query is successful, the user-specified callback function is invoked with the result. A FeatureSet contains an array of Graphic features, which can be added to the map using Map.graphics.add(). This array will not be populated if no results are found.
executeForIds(parameters,callback?,errback?)
Executes a Query against an ArcGIS Server map layer. The result is returned as a FeatureSet. If the query is successful, the user-specified callback function is invoked with the result. A FeatureSet contains an array of Graphic features, which can be added to the map using Map.graphics.add(). This array will not be populated if no results are found.
The examples are slightly different, but I can't tell how these methods differ.