Input is Once Document
{
"name": [
"abc",
"xyz"
],
"values": [
"123",
"100"
]
}
The explanation I want to Normalize the Array into multiple documents, abc, and xyz are dynamically coming, these are user define parameters
Expected Output
[
{
"data": {
"name": "abc",
"values": "123"
}
},
{
"data": {
"name": "xyz",
"values": "100"
}
}
];
nameandvaluesarray? Can they mismatch in size?valuesandnameshould be the same.