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

numbers may need to be string

    • Type: Icon: Investigation Investigation
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 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 Unassigned
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: