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

Humm maybe but I’m not sure. At least this is its equivalent and I don’t know if the version without the aggregation pipeline is possible. At least I have no idea how I would do it if it’s even possible. Why is this important?