Skip to content

Commit

Permalink
chore(lua transform): Fix example of setting nested field
Browse files Browse the repository at this point in the history
The parent has to be initialized first.

Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko committed Sep 9, 2024
1 parent 9a78ea3 commit edabb84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/cue/reference/components/transforms/lua.cue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ components: transforms: lua: {
-- Add root level field
event.log.field = "new value"
-- Add nested field
event.log.nested = {}
event.log.nested.field = "nested value"
-- Rename field
event.log.renamed_field = event.log.field_to_rename
Expand Down

0 comments on commit edabb84

Please sign in to comment.