set

suspend fun <T : Model> set(collection: MongoCollection<T>, serializer: KSerializer<T>, setData: suspend MongoCollection<T>.() -> T?): T?

Insert or update a single item in your db and return it. This will update the item in the cache by the id