db.version method not available in mongoshell 0.0.6 beta

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • No version
    • Affects Version/s: 0.0.6
    • Component/s: Embedded Shell
    • None
    • Environment:
      macOSx
    • None

      I am exploring MongoDB 4.4 using Mongoshell 0.0.6 beta, not able to run db.version() method in mongoshell

       

      Darshans-MacBook-Pro:bin itzdarsh$ mongo
      MongoDB shell version v4.2.1
      connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
      Implicit session: session { "id" : UUID("2c523e0b-2144-4907-bda9-e7fd1e18ac90") }
      MongoDB server version: 4.4.0-rc11
      WARNING: shell and server versions do not match
      Server has startup warnings: 
      ...
      MongoDB Enterprise > db.version()
      4.4.0-rc11
      MongoDB Enterprise > exit
      bye
      
      
      
      Darshans-MacBook-Pro:bin itzdarsh$ mongosh
      Current sessionID:  008223e6e096d5fd19aa8420
      Connecting to:      mongodb://127.0.0.1:27017
      Using MongoDB:      4.4.0-rc11
      Using Mongosh Beta: 0.0.6
      
      
      For more information about mongosh, please see our docs: https://docs.mongodb.com/mongodb-shell/
      
      
      > db.version()
      TypeError: db.version is not a function
      > 
      

            Assignee:
            Unassigned
            Reporter:
            Darshan J
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: