MongoServerError: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction

The only way

is that if the code crashes between the ArticleView creation and the Article.views increment.

But if you want to stick with transaction you have to do what the error message tells you to do