influxdb-client-js

InfluxDB 2.0 JavaScript client

View the Project on GitHub influxdata/influxdb-client-js

Home > @influxdata/influxdb-client > QueryApi > queryRaw

QueryApi.queryRaw() method

QueryRaw executes a query and returns the full response as a string. Use with caution, a possibly huge stream is copied to memory.

Signature:

queryRaw(query: string | ParameterizedQuery): Promise<string>;

Parameters

Parameter Type Description
query string | ParameterizedQuery query

Returns:

Promise<string>

Promise of response text