Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Sep 15, 2023
1 parent e4eee93 commit da2a927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/src/realm_class.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 extends AsymmetricObject>(T object) {
final metadata = _metadata.getByType(object.runtimeType);
final handle = _createObject(object, metadata, false);
Expand Down
2 changes: 1 addition & 1 deletion test/asymmetric_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Future<void> main([List<String>? 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<RealmException>('Query on ephemeral objects not allowed'));

realm.syncSession.resume();
Expand Down

0 comments on commit da2a927

Please sign in to comment.