MongoDB Atlas Bulk Document Updater
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
MongoDB Atlas Bulk Document Updater lets you update a specific field across multiple documents in a single operation. Instead of opening each document individually, finding the field, editing the value, and saving — repeating this for every single document — this tool provides a unified checklist of all documents on the current collection page. You can filter documents by content to quickly find the ones you want to update. Select any number of documents using checkboxes, enter the field name you want to update, enter the new value, and click Update. The tool then automatically processes each selected document — opening the edit modal, locating the specified field, setting the new value, and saving the changes. This turns what could be dozens of manual operations into a single batch action, making database updates significantly faster and more efficient.
WHERE IT RUNS
This script runs exclusively on the MongoDB Atlas web application in your browser. It activates on the collection document list view within the MongoDB Atlas cluster interface. It requires the BotGentz extension to inject and execute the script. The tool does not work on the MongoDB shell, the Compass application, or any third-party MongoDB clients — only the web-based MongoDB Atlas interface accessed through a Chromium-based or Firefox browser. It specifically targets pages under *.mongodb.com, including the MongoDB Atlas cluster and collection views.
HOW TO USE
After installing the script via BotGentz, navigate to your MongoDB Atlas cluster and select a collection to view its documents. The tool automatically detects the document list and displays a floating panel on the right side. The panel shows all documents on the current page, with checkboxes next to each document entry. Each document displays its _id value and a preview of its field contents. Use the search box to filter by content to narrow down your selection. Check the boxes for every document you want to update. Below the document list, enter the field name you want to update (e.g., "status", "active", "priority") and the new value you want to assign. Click "Update Documents" and confirm the action. The tool will process each selected document one by one — opening the edit modal, locating the specified field, updating it with your new value, and saving the changes. A status message appears when the operation completes, showing how many documents were successfully updated.
THE ACTUAL MECHANISM — WHY IT WORKS
MongoDB Atlas's web interface is built with React and uses a component-based rendering system for its document management. The document list is rendered as table rows or list items, each containing document data and action buttons. This tool scans the DOM for document items using multiple selector patterns that MongoDB Atlas consistently uses across versions. For each document, it extracts the _id value and field preview contents from the visible text content, and assigns a unique identifier from data attributes. When updating documents, the tool locates the edit button within each document item or triggers a double-click to open MongoDB Atlas's document edit modal. The modal contains a JSON-like field editor where fields can be modified. The tool attempts to locate the specified field by scanning field name elements within the modal. If the field is found, it updates the corresponding value input. As a fallback, the tool can manipulate the JSON text area directly. The tool uses React-friendly event dispatching — setting values via the native setter and dispatching both "input" and "change" events to ensure React registers the updates. The tool then clicks the modal's save/confirm button, waits for the modal to close, and proceeds to the next document. This approach works without making direct MongoDB queries, which would require authentication credentials and knowledge of the database structure. By using the existing UI, the tool works within MongoDB Atlas's own permission and validation system, and continues to function even if the underlying API changes.
THE PANEL
The floating panel is fully draggable — click and drag the header to reposition it anywhere on the page. The panel's position is saved per site in localStorage, so it reappears exactly where you left it when you return to the collection. Double-click the header to snap the panel to the nearest edge (left or right). A collapse button minimizes the panel to a small tab showing a database emoji badge, keeping it out of the way while still accessible. The document list inside the panel is scrollable and resizes vertically based on the number of documents. Pressing Escape while the panel is focused closes it completely; reopening is done via a small button injected near the page toolbar. All panel interactions are non-blocking — MongoDB Atlas's main UI remains fully responsive while the panel is open, and the panel updates automatically when you navigate between collections or pages.
PLEASE NOTE
This script requires the BotGentz extension (free) to run user scripts on MongoDB Atlas. MongoDB Atlas frequently updates its web interface and modal structures; if the tool stops working, check for an updated version within BotGentz's script repository. This tool does not store, transmit, or log any document data, field names, or values — all operations occur locally in your browser with no external network requests except those made by MongoDB Atlas itself. Document updates are applied through MongoDB Atlas's own UI event system, so all changes respect your database permissions and schema validation rules. The tool does not bypass MongoDB Atlas's security or permission system; it simply automates the clicks you would otherwise perform manually. For collections with a large number of documents, the tool may take several minutes to complete the operation, as each document is processed sequentially with delays to avoid overwhelming the UI. A progress indicator shows which document is currently being processed. Always double-check your selections, field name, and new value before applying changes, as bulk updates can affect many documents quickly. The tool only affects documents visible on the current page; to update all documents, use MongoDB Atlas's built-in pagination controls or adjust your filter to show all relevant documents. This tool is designed for batch updates — applying the same field value change across multiple documents simultaneously. It is strongly recommended to backup your data or work on a development environment before performing bulk update operations.