I've recently encountered the need to override the request options sent to queryFeatures(), specifically to force using POST instead of GET due to the server's limit on query string length. The problem is that queryDatasets() does not currently allow that.
We could do this in a couple ways. We could either add a requestOptions property to IDataset, or we could have queryDatasets() take an optional second argument like requestOptions?: IRequestOptions) which could be passed in from chart.query() as something like queryDatasets(this.datasets(), this.requestOptions(). We could also ultimately do both of those and have the dataset's options override those of the chart.
I suggest starting by adding the property to IDataset since that is the most granular and offers the most bang for the buck.
I've recently encountered the need to override the request options sent to
queryFeatures()
, specifically to force usingPOST
instead ofGET
due to the server's limit on query string length. The problem is thatqueryDatasets()
does not currently allow that.We could do this in a couple ways. We could either add a
requestOptions
property toIDataset
, or we could havequeryDatasets()
take an optional second argument likerequestOptions?: IRequestOptions
) which could be passed in fromchart.query()
as something likequeryDatasets(this.datasets(), this.requestOptions()
. We could also ultimately do both of those and have the dataset's options override those of the chart.I suggest starting by adding the property to
IDataset
since that is the most granular and offers the most bang for the buck.