How to use fetchNewObject with update.one ReactiveMongo?
问题 Previously I used findAndUpdate and could add fetchNewObject = true so I was able to do something like this after the query: .map(_.result[WhicherReport].getOrElse { throw new NoSuchElementException }) but I'm using transaction now and could only perform update.one(...) and there is no option to pass it fetchNewObject , what can I do? This is my func: def someUpdateFunc(collection: BSONCollection, metadata: Metadata, ids: List[String]): Future[UpdateWriteResult] = { collection.update.one( q =