I added `org.litote.kmongo:kmongo-coroutine-serial...
# kmongo
j
I added
org.litote.kmongo:kmongo-coroutine-serialization:4.7.1
as a dependency and I’m trying to count the documents in a collection with this
Copy code
val collection = database.getCollection(collectionName, Document::class.java)
collection.countDocuments()
But this gives me a
Publisher<T>
but I was expecting this to be a
suspend
function. How am I supposed to use this?