upsertOne return value

https://www.mongodb.com/docs/manual/reference/method/db.collection.updateOne/#returns

updateOne should return a class with fields matchedCount, etc.

When using upsertOne, there should be an added method andGet:

val upserted = upsertOne() {
    
}.andGet()
Edited by Ivan “CLOVIS” Canet