InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client > QueryApi > collectLines
CollectLines executes the query and collects all result lines in the returned Promise. This method is suitable to collect simple results. Use with caution, a possibly huge stream of lines is copied to memory.
Signature:
collectLines(query: string | ParameterizedQuery): Promise<Array<string>>;
Parameter | Type | Description |
---|---|---|
query | string | ParameterizedQuery | query |
Returns:
Promise<Array<string>>
Promise of returned csv lines