I have a point layer and I have a polygon layer. I am looking for a way, using REST API for an ArcGIS Map Service, to pull all point features that fall within (intersect) any polygon features in the other layer. I attempted this by querying the polygon features, then for each feature, pass its geometry to the query for the point layer. Problem I'm running into is that the polygon layer has a single feature and the JSON to represent the polygon is too large to send through a URL.
Is there a way to do an intersect query on the point layer and pass in the polygon layer?