Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15780

Realm JavaScript objects should extend Realm.Object

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Realm
    • Labels:
      None

      I believe the Realm object defined in the code sample at Define Realm Object Types with JavaScript Classes, needs to include "extends Realm.Object" in the class definition. So:

      class Car extends Realm.Object {

            Assignee:
            kyle.rollins@mongodb.com Kyle Rollins
            Reporter:
            brian.leonard@mongodb.com Brian Leonard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 18 weeks, 5 days ago