I was wondering if it is possible to do a client side spatial filter of a feature layer view of Points by a different feature layer view of Circles using the JavaScript API. By that I mean, filter the layer of points such that it only displays the points that are inside any Circle in the other feature layer view. You might call this an intersect of the two layers. I see plenty of examples of ways to do a spatial filter with one geometry on a layer, but haven't found a way to filter a layer with an entire other layer or group of geometries.
If there isn't a fully built in way to achieve this, is there any way that you know that I could work around this while staying inside the JavaScript API?
If this isn't something that is possible with the JavaScript API, is there was a service that you provide that has this ability?
This page somewhat describes what I'm trying to achieve for more context: https://doc.arcgis.com/en/insights/latest/analyze/spatial-filter.htm