Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1073

NumberInt(NumberInt(n)) throws in mongosh

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.1.9
    • None
    • Bson
    • None
    • 2
    • Not Needed
    • Iteration Reno, Iteration Seoul

    Description

      Split from MONGOSH-1035, in the legacy shell NumberInt(NumberInt) is just NumberInt but mongosh throws with a type validation error instead. This seems like a bug.

      Also, the legacy shell accepted NumberInt(null) for 0. I feel like we should have a short conversation about the desired behavior here.

      Attachments

        Activity

          People

            anna.henningsen@mongodb.com Anna Henningsen
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: