diff --git a/examples/kotlin/shared/src/commonTest/kotlin/com/mongodb/realm/realmkmmapp/UpdateTest.kt b/examples/kotlin/shared/src/commonTest/kotlin/com/mongodb/realm/realmkmmapp/UpdateTest.kt index aba73731ae..ed7502c710 100644 --- a/examples/kotlin/shared/src/commonTest/kotlin/com/mongodb/realm/realmkmmapp/UpdateTest.kt +++ b/examples/kotlin/shared/src/commonTest/kotlin/com/mongodb/realm/realmkmmapp/UpdateTest.kt @@ -317,8 +317,6 @@ class UpdateTest: RealmTest() { realm.write { val updated = query("age <= $0", 2).find() assertEquals(2, updated.size) - assertContains("Jr.", updated[0].name) - assertContains("Jr.", updated[1].name) deleteAll() } realm.close() diff --git a/source/sdk/kotlin/realm-database/crud/update.txt b/source/sdk/kotlin/realm-database/crud/update.txt index 5090797107..9a288c339c 100644 --- a/source/sdk/kotlin/realm-database/crud/update.txt +++ b/source/sdk/kotlin/realm-database/crud/update.txt @@ -416,7 +416,7 @@ Upsert a Realm Object To upsert an object into a realm, insert an object with a primary key using `copyToRealm() <{+kotlin-local-prefix+}io.realm.kotlin/-mutable-realm/copy-to-realm.html>`__, -as you would when :ref:`creating a new object `, and pass an +as you would when :ref:`creating a new object `, and pass an `UpdatePolicy <{+kotlin-local-prefix+}io.realm.kotlin/-update-policy/index.html>`__ parameter to specify how the SDK handles existing objects with the same primary key: