0

when i am running mongo -version it showing a different version than when i am running db.version() from Mongo shell. how this is possible and which is the correct version.

1 Answers1

0

mongo -version returns Mongo shell version.

db.version() returns version of the server you're connected to.

gronostaj
  • 57,004