bloblang syntax about flatten arrays in array and set a dynamic key in an object #3068
-
|
Beta Was this translation helpful? Give feedback.
Answered by
mihaitodor
Dec 9, 2024
Replies: 1 comment 5 replies
-
Hey @fearfate you can't assign to expressions like that. Maybe try this: root = this.merge({("key:%v".format(123456)): "value"}) The extra Regarding |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
fearfate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @fearfate you can't assign to expressions like that. Maybe try this:
The extra
()
are necessary, unfortunately.Regarding
flatten()
, I'm not sure what the question is.