0

In my Mongo DB, I have a user ID and status fields. Before inserting a new record I've to check for some combination of these fields and insert a new record accordingly.

In NodeJS with Mongoose, 'pre' is a functionality where I can validate before inserting and proceeding accordingly. My current environment is Ktor, my programming language is Kotlin, and the framework I'm using to interact with Mongo is KMongo.

Is there an equivalent of 'pre' in KMongo?

Aleksei Tirman
  • 4,658
  • 1
  • 5
  • 24
Satyam
  • 15,493
  • 31
  • 131
  • 244

0 Answers0