Skip to content

Commit

Permalink
feat(example): demonstrate usage of Proxy when receiving rows
Browse files Browse the repository at this point in the history
  • Loading branch information
sranka committed Mar 1, 2022
1 parent 909c8fa commit e0b03e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ queryApi.queryRows(fluxQuery, {
// console.log(tableMeta.get(row, '_time'))

// or you can create a proxy to get column values on demand
// const p = tableMeta.toProxy(row)
// const p = new Proxy<Record<string, any>>(row, tableMeta)
// console.log(
// `${p._time} ${p._measurement} in '${p.location}' (${p.example}): ${p._field}=${p._value}`
// )
Expand Down

0 comments on commit e0b03e1

Please sign in to comment.