fixed filter example in variables docs, resolves #643

pull/647/head
Scott Anderson 2019-12-02 08:40:11 -07:00
parent 251c135d57
commit 83ca86ae6e
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ Reference each variable using dot-notation (e.g. `v.variableName`).
```js
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStart)
|> filter(fn (r) => r._measurement == v.measurement and r._field == v.field)
|> filter(fn: (r) => r._measurement == v.measurement and r._field == v.field)
|> aggregateWindow(every: v.windowPeriod, fn: mean)
```