Socket
Book a DemoInstallSign in
Socket

mongo-runner

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-runner

MongoDB Runner is a VSCode extension to connect MongoDB instance.

latest
Source
npmnpm
Version
0.6.3
Version published
Maintainers
1
Created
Source

MongoDB Runner

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.

Features

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:

MongoDB Shard Cluster Topology

MongoDB Runner Editor

By open MongoDB Runner editor, you can running MongoDB NodeJS driver inside VSCode and get the output on the right view.

MongoDB Runner Editor

Requirements

NA

Extension Settings

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.

SSL Connection

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
            }
        }]
    }

Private key connection setting

"mongoRunner": {
        "connection": [{
            "name": "connectionName",
            "url": "mongodb://localhost:27017",
            "user": "username",
            "options": {
                "sslCert": "/Users/Document/mongodb.pem",
                "sslKey": "/Users/Document/mongodb-cert.key",
                "ssl": true
            }
        }]
    }

Query

Simple Query

User below format for querying ObjectId:

{ "_id": new ObjectID("5ba2bfcf6d2a0312c7ec12c6") }

Known Issues

Please submit any issues you found or any suggestions on github issues.

Support MongoDB Runner

While MongoDB Runner is generously offered to everyone free of charge, if you find it useful, please consider supporting it.

Donate via PayPal

Slack

Feel free join slack channel for MongoDB Runner at: mongodb-runner.slack.com

Keywords

MongoDB

FAQs

Package last updated on 23 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.