I am trying to execute the code proposed by in this answer on stackoverflow from Scala.
In this answer, it is shown how to do this using Casbah; but as far as I have understood, Casbah is deprecated, and the mongo-scala-driver should be used.
How do I execute a custom code as the one proposed from scala?