Forum Discussion
Gayathry
5 years agoNew Contributor II
Thanks a lot Bojan. instead if using ‘ID’ in json path expression is there any other way to check list is empty as the object ‘ID’ name is a dynamic one.
bojanvelevski
5 years agoValued Contributor
Yes @Gayathry , try this:
$group.filter(x=>x.keys().length != 0).length > 0