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

NumberInt(NumberInt(n)) throws in mongosh

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1.9
    • Affects Version/s: None
    • Component/s: Bson
    • Labels:
      None
    • 2
    • Not Needed
    • Iteration Reno, Iteration Seoul

      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.

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

              Created:
              Updated:
              Resolved: