Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1869

Extended JSON serialization for CodeWithScope and DBRef mutate input

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: EJSON
    • None
    • Not Needed
    • Not Needed

      From the pull request:

      // TODO: the two cases below mutate the original document! Bad.  I don't know
      // enough about these two BSON types to know how to safely clone these objects, but
      // someone who knows MongoDB better should fix this to clone instead of mutating input objects.
      

      This is low priority since these are not oft used types (an deprecated in one case), but we'll track it here nonetheless.

      https://github.com/mongodb/js-bson/pull/304

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: