Using arrayFilter option in node-red-mongodb node in node-red

node-red-contrib-mongodb3 solved the problem