fixed custom to example, resolves #548

pull/568/head
Scott Anderson 2019-10-30 09:33:21 -06:00
parent d7ee098a21
commit 66b59331bf
1 changed files with 6 additions and 1 deletions

View File

@ -162,7 +162,12 @@ The operation:
```js
// ...
|> to(bucket:"my-bucket", org:"my-org", tagColumns:["tag1"], fieldFn: (r) => return {"hum": r.hum, "temp": r.temp})
|> to(
bucket:"my-bucket",
org:"my-org",
tagColumns:["tag1"],
fieldFn: (r) => ({"hum": r.hum, "temp": r.temp})
)
```
is equivalent to writing the above data using the following line protocol: