Open RJFoster opened 6 years ago
I have same requirement
Have you guys figured out how to work with this?
This is a good point. I have a version working, but there is a trick. The map has to have the instruction to create all array nodes first, then to populate, as follows:
map = {
"array[].x": "results[].ex",
"a": "results[].aye",
"b": "results[].bee"
}
This would be a new feature, and it breaks a couple of existing tests. @wankdanker what are your thoughts about this?
Any updates on this? I am having similar requirement.
I've fixed it on my own. I've also launched the complete test suite successfully
Hi @emmartu , i have same requirement, could you share your knowledge, Thank you.
I've fixed it on my own. I've also launched the complete test suite successfully
Is it possible to include parent items when mapping arrays For example, if I have:
and I want to convert it to:
I've tried to use a map something like:
But I get:
Obviously the second array element isn't what I want. Presumably I could use a transform, but with more complex examples I would essentially just be mapping using JavaScript