From 442654b74c87290ad617c54598b0e9db0612bcb9 Mon Sep 17 00:00:00 2001 From: cbullinger Date: Fri, 20 Oct 2023 11:53:44 -0400 Subject: [PATCH] Fix autobuilder error --- .../kotlin/com/mongodb/realm/realmkmmapp/UpdateTest.kt | 2 -- source/sdk/kotlin/realm-database/crud/update.txt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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: