Node Driver - How to updateMany Replace Array with last item in Array

wow thank you, thats great… i will test it out…

would the same be possible without using aggregation and mongo query language? i…e updateMany with $set?