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

Refactor ObjectId and Decimal128 to/from functions to fix Chrome Debugger

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Currently the ObjectId and Decimal128 property types are broken when using the Chrome Debugger. This is because the JSC does not have access to the 'bson' library. It tries to use run this javascript library to convert the binary data into a javascript value.

      Instead of using the javascript BSON constructors to transfer the values from strings, we should create and return a value natively which can be represented as a javascript object.

      Possible POC -> get realm into a mode that is receiving and sending EJSON

      Goals:

      Access ObjectIDs and Decimal128 values as plain objects. (Do not rely on any javascript implementation from BSON)

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.meyer@mongodb.com Andrew Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: