Skip to content

Commit

Permalink
chore(lua transform): Fix example of setting nested field (#21241)
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 11, 2024
1 parent 745babd commit 9b8312a
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 9b8312a

Please sign in to comment.