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

Realm Legacy sample code snippet doesn't match reference docs

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Realm
    • Labels:
      None

      Description

      The sample code snippet that illustrates event handling for Realm Legacy in Node.js uses indexes to cycle through all the modifications, and shows the requirement to fetch objects from the DB first.

      Since version 6 of the SDK, however, the ChangeEvent structure reports directly the modified objects instead of their indexes, avoiding the necessity of a fetch, so the handling is much easier.

      The sample code should be modified to reflect the change, as users are confused when they have code based on it.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            Unassigned Unassigned
            Reporter:
            paolo.manna@mongodb.com Paolo Manna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 6 weeks, 1 day ago