[DOCS-15780] Realm JavaScript objects should extend Realm.Object Created: 06/Dec/22 Updated: 04/Jan/23 Resolved: 28/Dec/22 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | Realm |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Brian Leonard | Assignee: | Kyle Rollins |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 1 year, 6 weeks ago |
| Description |
|
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:
|
| Comments |
| Comment by Kyle Rollins [ 28/Dec/22 ] |
|
Happily, this is addressed in other work done to update code samples. See DOCSP-20816 for details and a link to a staged version of the updated code samples. |