Forum Discussion
Hi @acesario,
There is an expression. You can remove all field that are null or only by specific fields.
For this you must use Mapper and you need to have checked Pass Through checkbox and also target path need to be empty.
$group...[?(value == null && key == "fieldName")]
$group: Is an array and if you remove the “group” and let stay only “$” then it will work again but it will check through whole document.
value: We specify what value we want to remove. In this situation is null.
key: If we have to specify name of field that we want to remove, then we set key in the conditions. If we only need to check by value then remove the key. Ex: $group...[?(value == null)]
Regards,
Viktor Nedanovski