You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Insert dialog: Insert (in the toolbar, or + on a collection in the tree) opens a dialog in the collection's tab instead of an editor tab to save: type or paste the documents and press Insert (Ctrl+Enter). It takes one document, an array (inserted with insertMany), JSON Lines or a pasted insertOne(…) / insertMany(…), in mongosh syntax or Extended JSON, with autocomplete and syntax colors, and says while you type how many documents it found or what's wrong. Template starts from the collection's fields; errors (a duplicate _id, validation) show in the dialog, and when one of several documents is refused it says how many went in. Keep open inserts several in a row; Open in Editor still opens an editor tab. Duplicate opens the dialog with the copy.
Copy as: Copy ▾ in the document dialog copies the document as mongosh, Extended JSON, plain JSON, YAML or an insertOne command. The same formats are in a new right-click menu on the rows, with Open document, Copy value, Duplicate… and Delete document.
Select several rows: Ctrl/Cmd+click, Shift+click and Ctrl+A select documents in the table (highlighted, with N selected · Clear next to the paging); right-click a selected row to copy them as a mongosh or Extended JSON array, JSON Lines, JSON, YAML, an insertMany command or CSV of the visible columns, export them, open Update many on their _ids, or delete them (also the Delete key), with undo and redis-oplog.
Actions on a column: the header's right-click menu has Rename field… ($rename, dotted paths too), Remove field… ($unset, also from the elements of an expanded array) and Convert type… ($convert to string, int, long, double, decimal, bool, date or objectId, keeping the values it can't convert and saying how many), on the documents matching the filter, with the count in the confirmation, undo and redis-oplog; a renamed column keeps its place, width and visibility.
Generate test documents: Generate Test Documents… on a collection or view, or Generate… in the Schema tab, creates up to 1,000,000 fake documents that look like the collection's: each field appears as often as it was seen, with the same mix of BSON types and the frequent values re-used; numbers and dates follow the histogram; strings follow the field name and the values seen (emails, URLs, UUIDs, phones, names, codes). They go into this collection or another one on any connection, after a preview of 3 documents, with an optional seed for reproducible output; inserts run in batches with Cancel and can be undone like an import.
Atlas Search and Vector Search indexes: the Indexes tab lists the collection's search indexes below the others, with type, colored status (READY, BUILDING, FAILED, …), whether they're queryable, and the definition in short; clicking one shows the full definition, the mongosh command and the status on each host, and the list follows a build every 5 seconds while the tab is shown. Create search index… takes the name, the type and the definition as text with colors and suggestions, filled in by Dynamic mapping, Static mappings from the documents' fields, or for vectors the path, dimensions (from the sampled arrays), similarity, quantization and filter fields; Edit… and Drop change and drop them. A server without search says what it needs (Atlas, an Atlas local deployment, or Community 8.3+ with mongot) instead of failing. In the pipeline editor, $search, $searchMeta and $vectorSearch have templates and suggestions (the collection's search index names in index, and $meta scores in $project / $addFields), and are marked when they aren't the first stage.
Sharding in the server monitor: on a mongos, the new Sharding section shows the shards (replica set, state, draining, zones, chunks, data and documents), the sharded collections (shard key, balancing, chunks and data per shard with a distribution bar, balance, jumbo chunks; click for zone ranges and the config.collections document), the balancer and the migrations of the last 24 hours, and the recent migrations, splits and balancer rounds with failures highlighted; Stop Balancer… / Start Balancer… and Disable Balancing… / Enable Balancing… for a collection after a confirmation, not on read-only connections. On a standalone server or a replica set it says it isn't a sharded cluster, and without the clusterMonitor role it shows what it can read.
Explain on a sharded cluster shows each shard's plan with its numbers, so a collection scan or the index used on a shard is reported.
Sessions and transactions in the playground: db.getMongo().startSession() gives mongosh's sessions: the collections of session.getDatabase("…") run every operation in the session, and startTransaction() / commitTransaction() / abortTransaction() / withTransaction(() => { … }) work as in mongosh, with the driver's retries on write conflicts and no await needed in the callback. With redis-oplog, a transaction's writes are published in order only once it commits, never if it aborts. Sessions left open at the end, after an error or a Cancel are ended with their transaction aborted, and the output says so. On a standalone server the error explains that a replica set is needed (a single-node one is enough). Autocomplete knows db.getMongo()., sessions and session.getDatabase("x")..
No await needed inside expressions in the playground: every call is awaited where it is, so db.orders.find().toArray().length, db.stock.findOne({}).n, print(db.users.countDocuments()) and template literals give their values instead of undefined or a Promise, also in the blocks of if, for, while and try at the top of the script and in async functions; cursors stay lazy until they are read. Before, such a call kept running unawaited, and inside a session it could fail after the session ended.
Importing and exporting connections: Import Connections… (the view's … menu, the Command Palette or a folder) reads MongoDB Compass's export (also encrypted with a passphrase), Mongoster's own or a list of connection strings (name = mongodb://…), from a file or the clipboard, with name, color, TLS files and SSH tunnel; it shows which connections already exist (Skip, Replace or Keep Both) and lets you choose the folder. Export Connections… writes the chosen connections as Mongoster JSON (folders, colors, read-only, TLS, SSH, redis-oplog), Compass JSON or a list, without passwords, with them in clear text, or encrypted with a passphrase the way Compass does it.
Automated tests: npm test runs unit tests of the query syntax, pipelines, query builder, CSV, schema, explain, profiler, code generation, archive format and the other shared modules, and npm run test:integration runs the playground and a backup/restore round trip against a real mongod; the Build workflow runs both. A regex pattern containing // (such as http://x) is now written as a /…/ literal that can be read back.