diff --git a/README.md b/README.md index a643033..210fc64 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud). -_903 TILs and counting..._ +_904 TILs and counting..._ --- @@ -28,6 +28,7 @@ _903 TILs and counting..._ * [JavaScript](#javascript) * [Linux](#linux) * [Mac](#mac) +* [MongoDB](#mongodb) * [MySQL](#mysql) * [Phoenix](#phoenix) * [PostgreSQL](#postgresql) @@ -382,6 +383,10 @@ _903 TILs and counting..._ - [Specify App When Opening From Command Line](mac/specify-app-when-opening-from-command-line.md) - [View All Windows Of The Current App](mac/view-all-windows-of-the-current-app.md) +### MongoDB + +- [Determine The Database Version](mongodb/determine-the-database-version.md) + ### MySQL - [Display Output In A Vertical Format](mysql/display-output-in-a-vertical-format.md) diff --git a/mongodb/determine-the-database-version.md b/mongodb/determine-the-database-version.md new file mode 100644 index 0000000..bd0a148 --- /dev/null +++ b/mongodb/determine-the-database-version.md @@ -0,0 +1,14 @@ +# Determine The Database Version + +Whether your Mongo database is local or remote, you should connect to it using +the [`mongo` CLI](https://docs.mongodb.com/manual/mongo/). + +Once connected, you can issue the following query: + +``` +db.version() +``` + +This will output the version of your Mongo database. + +[source](https://docs.mongodb.com/manual/reference/method/db.version/)