Can the Dashboard time range be used inside a query variable with MongoDB?
I want to extract the values of a variable of the data only inside the Time Range from the dashboard, but it seems that the global variabled corresponding to the Time-Range ($from, $to etc.) are not usable inside a query variable.
The Grafana documentation says about time range inside variables:
On Time Range Change - Queries the data source when the dashboard time range changes. Only use this option if your variable options query contains a time range filter or is dependent on the dashboard time range.
From that, I assume that it can be used, but not with MongoDB.
Any inside on how can this be solved? MongoDB query variables are incompatible with Time Range intervals?
Thanks in advance.