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

Realm Web: Export BSON types from the package

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      Users of (expecially the IIFE / CDN bundle) wants to use BSON types exported by the "realm-web" package.

      Expected Results

      const _id = new Realm.BSON.ObjectId();
      

      Actual Results

      > Thrown:
      > TypeError: Cannot read property 'ObjectId' of undefined

      Version of Realm and Tooling

      • Realm Web SDK Version: 0.8.1
      • Node or React Native: Web

            Assignee:
            kraen.hansen@mongodb.com Kræn Hansen
            Reporter:
            kraen.hansen@mongodb.com Kræn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: