How to Upgrade MongoDB on Mac OS X

If you are using MongoDB version 3.0.x and you would like to upgrate it to version 3.2 then:

brew update
brew upgrade mongodb

Check the version

mongod --version