InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client > QueryApi > iterateRows
IterateRows executes the supplied query and returns results in an async iterable of row data and table metadata pairs. Async iterables are best consumed by for-await
loop.
Signature:
iterateRows(query: string | ParameterizedQuery): AsyncIterable<Row>;
Parameter | Type | Description |
---|---|---|
query | string | ParameterizedQuery | query |
Returns:
AsyncIterable<Row>
async iterable of CSV result lines