db.runCommand and db.adminCommand do not support string argument right now

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.10.0
    • Affects Version/s: 0.9.0
    • Component/s: Shell API
    • None
    • 1
    • Iteration Yucca
    • Not Needed

      mongosh currently does not support the "string" variants of db.runCommand and db.adminCommand - only the "object" style is supported.

      Example that works:

      db.runCommand( { isMaster: 1 } )
      

      Example that does not work but works in mongo:
      db.runCommand('isMaster')

            Assignee:
            Michael Rose (Inactive)
            Reporter:
            Michael Rose (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: