Questions tagged [kmongo]

A Kotlin toolkit for Mongo

48 questions
0
votes
1 answer

MongoDB - Cannot invoke ClusterDescription.getConnectionMode() because clusterDescription is null

I am trying to implement a RESTful api with Ktor and KMongo. I connected a mongoDB Atlas database and it works well. Then I prepared to deploy a first version of the api on Heroku and now when I run it locally every query to the database throws this…
Rolud
  • 121
  • 1
  • 8
0
votes
1 answer

Strict parsing into POJOs with KMongo

When I find documents in my collections and parse them into POJOs, I would like to see exceptions, if additional keys are available in the MongoDB, that do not correspondent to my POJO. Can't find a way to configure that. What I do data class…
CFrei
  • 3,552
  • 1
  • 15
  • 29
0
votes
1 answer

Problem with the configuration of the Ktor server for Kmongo (Kotlin Server + Mongo)

I'm using Ktor with KMongo. I have a problem when I start the server in localhost and I make a simple 'get' request. The references aren't very clear and complete - https://litote.org/kmongo/ - regarding the configuration of the database on the…
spel
  • 45
  • 1
  • 8
1 2 3
4