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

Investigate changes in SERVER-45460: Deprecate CodeWithScope as a BSON type

      Description

      Downstream Change Summary

      JavaScript functions stored as BSON type CodeWScope in a system.js collection can no longer be used in $where or mapReduce. We have deprecated BSON type CodeWScope and expect users to store JavaScript functions as BSON type string or Code.

      Description of Linked Ticket

      This work will consist of:

      • Updating bsonspec.org to list code_w_s as a deprecated type
      • Updating comments in bsyontypes.h to reflect that BSONType::Code is not deprecated and that BSONType::CodeWScope is deprecated
      • Investigating whether work is needed to prevent use in system.js and to handle gracefully existing CodeWScope in system.js on 4.4 upgrade
      • Requesting documentation changes

      We could also consider adding a deprecation message to the log on every X uses for 4.2

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

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

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 years, 2 days ago