Open jmcnevin opened 3 years ago
Hey there, yeah I don't know of a good way to do this currently. Agreed that it would be useful. I am not sure how to do a clean implementation of this but would welcome ideas. I think the relevant code section is here, and at first glance it seems like passing around the whole object context in that loop would be clunky - I think it would need to be a new function parameter in all the transforms, or something like that.
I'm attempting to transform a document like this:
Into something like this:
This would take the children's first names and combine them with the parent's last name. I'm not sure if this can be done currently without some way of escaping the context created by using
over
, like this (borrowing from syntax I've seen in JSONata):This would be a nice feature to have, unless some other solution is possible.