Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-65176

Convert undefined to null on insert/update

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      Whenever mongosh tries to insert undefined values, those undefined values get converted to null in the driver logic. This effectively ensures that users of mongosh are not able to insert any values of undefined type into MongoDB. This is not true in the legacy mongo shell, as the legacy shell allows you to insert values of undefined type. 

       

      Instead of this implicit conversion from undefined -> null on the driver side, we should perform that conversion on the server side, to effectively disallow any insertion of new undefined values into MDB collections. 

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            colby.ing@mongodb.com Colby Ing
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: