Hello
When you send 1 query,you can change many things in the document and change will be
atomic.MongoDB offers pipeline updates also,that can do all sorts of complicated updates
in 1 document.(you can send multiple queries also,but you need transactions to make them atomic)
For an example of how to update an array with members documents see this query
Its atomic and its fast.It checks if new member => update,else add in the end of the array.
In your case if you already know if new or existing comment,you can make it even faster,
and avoid the check.