Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-159

find method to look up object by primary key

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      Right now to look up a single object by primary key, you have to make a full query and then do a findFirst().

      It would be nice if you could do a direct lookup with a method like:

      MyObject obj = realm.find(MyObject.class, objId);
      

      (the Swift, C# and Javascript bindings all have methods like this)

            Assignee:
            Unassigned Unassigned
            Reporter:
            alexander.stigsen@mongodb.com Alexander Stigsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: