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

Convert undefined to null on insert/update

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Execution

    Description

      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. 

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            colby.ing@mongodb.com Colby Ing
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: