Mongo Runner is a VSCode plugin helps developers to connect to their MongoDB instance to do some basic operations such as: simple query
, tree topology
, index
, server statistics
etc.
Mongo Runner provides general operations about using MongoDB. It can connect to Mongo Single Instance, Mongo Replicaset and Mongo Shard Cluster.
For example below is a sceenshot of Mongo Shard Cluster Topology:
By open MongoDB Runner editor, you can running MongoDB NodeJS driver inside VSCode and get the output on the right view.
NA
Setup MongoDB Connection in your workspace setting. Be aware that the name for each connection need to be unique.
"mongoRunner": {
"connections": [
{
"name": "connection1",
"url": "mongodb://localhost:27017/test"
},
{
"name": "connection2",
"url": "mongodb://localhost:27018/test"
}
]
}
In order to secure user's password, we don't support put password in the configuration file as plain text. Instead, when you specify the user name in the configuration file, MongoDB Runner
will prompt you to input the password.
For SSl connection, please use options
configuration. You can also put all other mongo connection options there.
"mongoRunner": {
"connection": [{
"name": "connectionName",
"url": "mongodb://localhost:27017",
"user": "username",
"options": {
"ssl": true
}
}]
}
"mongoRunner": {
"connection": [{
"name": "connectionName",
"url": "mongodb://localhost:27017",
"user": "username",
"options": {
"sslCert": "/Users/Document/mongodb.pem",
"sslKey": "/Users/Document/mongodb-cert.key",
"ssl": true
}
}]
}
User below format for querying ObjectId
:
{ "_id": new ObjectID("5ba2bfcf6d2a0312c7ec12c6") }
Please submit any issues you found or any suggestions on github issues.
While MongoDB Runner is generously offered to everyone free of charge, if you find it useful, please consider supporting it.
Feel free join slack channel for MongoDB Runner
at: mongodb-runner.slack.com