Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update InfluxDB's docs and UI to use new await query pattern #610

Closed
ivankudibal opened this issue Oct 10, 2022 · 0 comments · Fixed by influxdata/docs-v2#4581 · May be fixed by influxdata/ui#6100
Closed

Update InfluxDB's docs and UI to use new await query pattern #610

ivankudibal opened this issue Oct 10, 2022 · 0 comments · Fixed by influxdata/docs-v2#4581 · May be fixed by influxdata/ui#6100
Assignees

Comments

@ivankudibal
Copy link

The #592 introduces possibility to use await queries instead of callbacks:

for await (const {values, tableMeta} of queryApi.iterateRows(fluxQuery)){
   // consume a particular row at will 
  console.log(JSON.stringify(tableMeta.toObject(values)))
}

We have to update the InfluxDB's docs and UI:

http://localhost:8086 > Load Data > Sources > Client Libraries > Javascript/Node.js
Image

https://docs.influxdata.com/influxdb/v2.4/api-guide/client-libraries/nodejs/query/
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants