Esc

MongoDB

Overview

MongoDB is a document-oriented NoSQL database that stores data as flexible, JSON-like BSON documents. It provides rich querying, indexing, aggregation pipelines, and horizontal scaling via sharding. MongoDB is available as a managed service on MongoDB Atlas, Amazon DocumentDB, and Azure Cosmos DB.

Driver

Connection fields

FieldDescription
HostHostname or IP address of the MongoDB server.
PortTCP port the server listens on.
DatabaseDefault database to connect to.
UserAuthentication username.
PasswordAuthentication password. Stored in the macOS Keychain.
SSL ModeOne of disable, prefer, require, verify-ca, or verify-full.
SRVUse mongodb+srv:// DNS seed list connection format (required for Atlas).
OptionsAdditional connection parameters as key1=val1&key2=val2.

All connections also support an optional SSH tunnel. Configure the bastion host, port, user, and private key file under the SSH section of the connection form. SeeSSH tunnels for details.

URI format

Instead of filling in each field individually, you can paste a connection URI into thePaste URI field. Arris parses the URI and populates all fields automatically.

textConnection URI
mongodb://user:password@host:27017/dbname?tls=true

For MongoDB Atlas and other hosted services, use the mongodb+srv:// format with the SRV toggle enabled.

SSL & TLS

MongoDB supports five SSL modes. Arris defaults to prefer, which uses SSL if the server supports it but falls back to unencrypted if not.

SSL ModeBehavior
disableNever use SSL. Not recommended for production.
preferUse SSL if available, fall back to unencrypted.
requireAlways use SSL. Fail if the server does not support it.
verify-caRequire SSL and verify the server certificate against a CA.
verify-fullRequire SSL, verify the CA, and verify the server hostname matches the certificate.

Schema browser

Once connected, Arris fetches the database and collection metadata. Databases act as top-level containers in the tree, each containing its own collections.

The schema tree displays the following object types, grouped by category:

Double-click any collection or view to open it in a new tab with browse mode.

Query modes

Arris queries MongoDB in two modes, switched per editor tab.

Supported SQL commands

CommandNotes
SELECTMaps to find / aggregate over collections.
INSERTInsert documents into a collection.
UPDATEUpdate matching documents.
DELETEDelete matching documents.

Unsupported SQL commands

CommandNotes
CREATE / DROPCollections are created implicitly on first write.