DataSourceMeta: add an option to get hidden queries (#17124)

* add an option to get hidden queries

* make sure you have meta

* supportsHiddenQueries

* remove spaces

* DataSources: hidden queries flag
This commit is contained in:
Ryan McKinley
2019-05-21 04:46:19 -07:00
committed by Torkel Ödegaard
parent 73e4178aef
commit 1033f0f905
5 changed files with 25 additions and 14 deletions

View File

@@ -85,6 +85,13 @@ export interface DataSourcePluginMeta extends PluginMeta {
queryOptions?: PluginMetaQueryOptions;
sort?: number;
supportsStreaming?: boolean;
/**
* By default, hidden queries are not passed to the datasource
* Set this to true in plugin.json to have hidden queries passed to the
* DataSource query method
*/
hiddenQueries?: boolean;
}
interface PluginMetaQueryOptions {