Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes Value on RealmObject returned by find method of DynamicRealm not implemented #1624

Open
PINAJ024 opened this issue Apr 10, 2024 · 1 comment

Comments

@PINAJ024
Copy link

PINAJ024 commented Apr 10, 2024

Problem - Flutter SDK

With the version of realm 2.0.0 for Flutter, we have a class called DynamicRealm, where we can execute a find method to get a RealmObject, but this object has an exception on changes value.

 RealmObject _retrieveDocument(Document id) {
    final RealmObject? object =
        _realm.dynamic.find(id.collectionId, id.documentId);
    if (object == null) {
      throw const ChassisException(message: 'Document can not be retrieved');
    }

    return object;
  }
  
  /// Access to changes causes an exception
  final Stream<RealmObjectChanges<RealmObjectBase>> stream = _retrieveDocument(id).changes;

image

Solution

Allow to developer to get access to changes value in order to listen to changes for a single RealmObject

Alternatives

No response

How important is this improvement for you?

Would be a major improvement

Feature would mainly be used with

Atlas App Services: Auth or Functions etc

Copy link

sync-by-unito bot commented Apr 10, 2024

➤ PM Bot commented:

Jira ticket: RDART-1001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant