Editing data in MongoDB
This feature is available with the Database Tools and SQL plugin installed on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace.
Please note that it is a paid plugin.
Open the MongoDB collection in the data editor.
Double-click the cell and modify a value.
Click the Preview pending changes icon (
) to see the DML.
For MongoDB, adding a document to a collection is similar to adding a row to a relational table. The difference is that it is not mandatory for all the documents of a collection to have the same fields.
In the Database tool window ( View | Tool Windows | Database) , double-click a MongoDB collection to open it in the data editor.
To add the draft of a document, right-click any area in the data editor and select Add Row. Alternatively, click the Add Row button (
) in the toolbar.
Change the values of fields from
<unset>
to the required ones.If a specific field is not required in the new document, or must be generated upon the new document creation (for example, the values of
_id
column), leave it as<unset>
.If you need to add the fields that are not currently present as columns in the new document, right-click any area in the data editor and select Add Column. Set the values of your new fields for the new document.
Click the Submit button (
) in the toolbar.

You can view and edit data and also raw JSON in a separate editor.
Right-click a cell in the collection opened in the data editor and select Maximize.
In the separate editor, you can wrap long values and change their types. To wrap a value, click Toggle Soft-WrapToggle Soft-Wrap. To change the type, click the type list and select the necessary value. Alternatively, to change a type, you can right-click a cell and select Change Type.
Right-click a header row of a column and select Add Column or Delete Column.
Thanks for your feedback!