While using the sample widget named feature-layer (https://developers.arcgis.com/experience-builder/sample-code/widgets/feature-layer-class/) I notice that FeatureLayerQueryParams has a geometry property. I have been importing JSAPI modules to do spatial queries and I thought I would switch to DataSourceComponent instead. I tried setting the property to an envelope, but it didn't work. The geometry parameter in the URL to the REST endpoint looked, like this:
geometry=%7B%7D
instead of this:
geometry=%7Bxmin%3A+2254552%2C+ymin%3A+250692%2C+xmax%3A+2254562%2C+ymax%3A+250702%7D

Is it possible to use DataSourceComponent for spatial queries? Is there some other component I should be using?
See:
FeatureLayerQueryParams Documentation