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

Realm Legacy sample code snippet doesn't match reference docs

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Realm
    • None

    Description

      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.)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 45 weeks, 1 day ago