Closed
Description
I'm trying to use collection.insertDocuments to support upsert but it doesn't support the keepNull property or specifying a custom return type.
Similar to #343.
I would like to be able to do this:
val options = DocumentCreateOptions().apply {
overwriteMode(OverwriteMode.update)
mergeObjects(true)
keepNull(false)
returnNew(true)
}
getCollection("my-collection")
.insertDocuments(
upserts,
options,
MyClass::class.java
)
.await()