Forum Discussion
nganapathiraju
9 years agoFormer Employee
Your expression should be
'child' in $ && 'child1' in $child
The above will return true is child1 exists in child. Its not $.child
Hope that makes sense.
jaybodra
9 years agoNew Contributor III
isn’t this expression $.child compliant with java script?
- bojanvelevski3 years agoValued Contributor
Hi @Manigandan,
@marjan.karafiloski’s solution will help you in this case.
If you want to keep everything in one mapper, then take a look at the array filter function:The expression would look something like this:
$array.filter(x=>x.active == 1)
Regards,
Bojan