There are some nifty options in the REST query API that don't seem to be supported in the JavaScript API. I'm thinking of the returnCountOnly, returnDistinctValues and returnIdsOnly options, for example.
I'm thinking of the returnCountOnly, returnDistinctValues and returnIdsOnly options, for example.
I'm not positive this answers your question, but I think that returnCountOnly is available as executeForCount while returnIdsOnly is available as executeForIds
I'm thinking of the returnCountOnly, returnDistinctValues and returnIdsOnly options, for example.
I'm not positive this answers your question, but I think that returnCountOnly is available as executeForCount while returnIdsOnly is available as executeForIds