I'm using the latest ReactiveMongo for play 2.7 and scala 2.12:
"org.reactivemongo" %% "play2-reactivemongo" % "0.17.1-play27"
and I want to create a find query and to count the number of documents returned from this query...
something like:
def countEntriesForReport(reportId: String) = {
collection.find( Json.obj("reportId" -> reportId), Option.empty[BSONDocument]).count()
}
But unfortunately there is no count here... how would you do that?