diff --git a/lib/src/realm_class.dart b/lib/src/realm_class.dart index c3e7c0f786..38044f8fb5 100644 --- a/lib/src/realm_class.dart +++ b/lib/src/realm_class.dart @@ -281,8 +281,9 @@ class Realm implements Finalizable { /// Ingest an [AsymmetricObject] to the [Realm]. /// - /// Ingesting is a write only operation. The ingested object will be dead immediately - /// after commit, but still transferred to the backend when possible. + /// Ingesting is a write only operation. The ingested objects synchronizes to + /// the App Services backend and are deleted from the device. An [AsymmetricObject] + /// can never be read from the Realm. void ingest(T object) { final metadata = _metadata.getByType(object.runtimeType); final handle = _createObject(object, metadata, false); diff --git a/test/asymmetric_test.dart b/test/asymmetric_test.dart index 022032542a..606b572e88 100644 --- a/test/asymmetric_test.dart +++ b/test/asymmetric_test.dart @@ -68,7 +68,7 @@ Future main([List? args]) async { }); // Find & query on an Asymmetric object is compile time error, but you can cheat with dynamic - expect(realm.dynamic.find('Asymmetric', oid), null); // should this throw instead? + expect(realm.dynamic.find('Asymmetric', oid), null); expect(() => realm.dynamic.all('Asymmetric'), throws('Query on ephemeral objects not allowed')); realm.syncSession.resume();