influxdata / influxdb-client-js

InfluxDB 2.0 JavaScript client

Home Page:https://influxdata.github.io/influxdb-client-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pure Javascript Examples

maufc opened this issue · comments

Short summary of the feature.
I'd need flux queries examples in javascript, not ts.
Describe what currently happens.
*.mjs and *. ts examples only
Describe what you want.
Examples on how to query in pure javascript, not typescript.
Describe other solutions or features you considered.
Just translate the files to js
Why is this important (helps with prioritizing requests)?
For add the functionality to existing scripts in JS

Thanks!

Hi @maufc,

here is am example in pure JavaScript:

function queryExample(fluxQuery) {

Regards

Ok. Thanks.
I could find a very good example in the InfluxDB WebUI.
It calls the @influxdata/influxdb-client library.
Is it the same library, right?
Thanks!

It calls the @influxdata/influxdb-client library.
Is it the same library, right?
Thanks!

Yes