Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1114

Mixed: Get underlying type of a mixed property

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • Q3-22FY
    • Affects Version/s: None
    • Component/s: None
    • None

      Since all numeric types (int, long, double) are represented as a number when read from our SDK, it makes sense to implement a method to get the underlying type of the property value, if your application (such as MongoDB Realm Studio) care about this.

      The API could be an instance method on Realm.Object:

      realmObject.getType(propertyName);
      

      getType() implies it works for any property (and not just Mixed properties).

            Assignee:
            jose.pedro-martins@mongodb.com Jose Martins (Inactive)
            Reporter:
            kraen.hansen@mongodb.com Kræn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: