InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client-giraffe > queryToFromFluxResult
Executes a flux query and iterrativelly collects results into a Giraffe’s FromFluxResult.
Signature:
declare function queryToFromFluxResult(queryApi: QueryApi, query: string | ParameterizedQuery, tableFactory: GiraffeTableFactory, tableOptions?: TableOptions): Promise<FromFluxResult>;
Parameter | Type | Description |
---|---|---|
queryApi | QueryApi | InfluxDB client’s QueryApi instance |
query | string | ParameterizedQuery | query to execute |
tableFactory | GiraffeTableFactory | creates a new Giraffe table |
tableOptions | TableOptions | (Optional) tableOptions allows to filter or even stop the processing of rows, specify maximum rows or restrict the columns to collect |
Returns:
Promise<FromFluxResult>
a Promise with query results