numbers may need to be string

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Works as Designed
    • Priority: Major - P3
    • 1.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      macOS 10.14.6
    • Not Needed

      mongosh 1.5.0 (version not listed in dropdown)

       

      mongo shell 4.4

      MongoDB Server 4.4-ent

      While running the db.serverStatus().metrics command in mongosh and mongo shell, 

      mongo stores the number as a number. The other stores the number as a string. This output deviates from the other db.serverStatus Object.key commands.

      NumberLong(0) may not be the same as Long("0").

      The key titled "commands" results are also dissimilar.

      Plase see screenshot.

            Assignee:
            Unassigned
            Reporter:
            Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: