From 66b59331bf9442e0e4bed8bfecc4bc28223ceaff Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Wed, 30 Oct 2019 09:33:21 -0600 Subject: [PATCH] fixed custom to example, resolves #548 --- content/v2.0/reference/flux/stdlib/built-in/outputs/to.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/v2.0/reference/flux/stdlib/built-in/outputs/to.md b/content/v2.0/reference/flux/stdlib/built-in/outputs/to.md index 63ec618b5..b9555fc9d 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/outputs/to.md +++ b/content/v2.0/reference/flux/stdlib/built-in/outputs/to.md @@ -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: