is there a way to capture the iterator during an apply? #2680
ryanpodonnell1
started this conversation in
General
Replies: 1 comment
-
|
Hey @ryanpodonnell1, not sure what you're looking to do, but maybe this helps you: map myexamplemapping {
root.rename_inner_key = this.component.someinnerkey
# do something with `this.components`
}
let components = this.componenents
root = $components.map_each(c -> {"component": c, "components": $components}.apply("myexamplemapping")).flatten() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
seems like I can only ever reference the current message in the processor chain aka
this.example:
input:
mapping:
want:
I wish there was some way to capture a given iterator like this:
Beta Was this translation helpful? Give feedback.
All reactions