1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Determine The Database Version as the first MongoDB til

This commit is contained in:
jbranchaud
2020-03-18 19:41:49 -05:00
parent 8a4fedac48
commit 481784d635
2 changed files with 20 additions and 1 deletions

View File

@@ -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/)