Introducing MongoDB Shell in DataGrip
Hi! We’ve released the new version of the MongoDB JDBC driver, which means that DataGrip now includes support for the new MongoDB Shell out of the box. This is the result of a close collaboration between engineering teams at MongoDB and JetBrains, and we are excited to finally release it to all our users.
If you use DataGrip to work with MongoDB and Atlas, you get a console/shell experience that is 100% consistent with what you get in MongoDB’s own shell and other MongoDB developer tools.
To use the newest version of the driver, just update it in the properties window of your MongoDB data source.
The majority of the commands that you can run in the MongoDB shell are now available in DataGrip and other JetBrains IDEs, and they work in exactly the same way as they do in MongoDB. Here’s the overview of what’s now available.
Calling up the help field works.
More methods for cursors: explain, projection, close, isClosed, hasNext, next, isExhausted, itcount, map, tailable, toArray, readPref, and readConcern.
New methods for working with collections: db.getCollectionInfos(), db.getCollectionNames(), and db.collection.remove().
You could previously create many types of BSON objects, but not all of them. This new update adds support for the ones that were missing: Date, HexData, and MD5.
Before, only two bulkWrite options were supported: insertOne and deleteOne. Now updateOne, deleteMany, updateMany, and replaceOne are supported, as well.
The readConcern and writeConcern options are supported for all commands, for example aggregate, bulkWrite, count, and others.
A known issue: collections with periods in their names cannot be used in commands, but there is a workaround:
A great fit for Atlas Data Lake
DataGrip works well with MongoDB deployments, whether self-managed or in Atlas. It also works with Atlas Data Lake. If you have data stored in Amazon S3 and you want to query and analyze it with MQL, you can create a Data Lake and start working with it right away.
DataGrip and MongoDB teams
Subscribe to Blog updates
Introspection Level Auto-Selection
Back in 2015, I was the only DataGrip team member working on database introspectors. Since then, several of my teammates have followed suit with their own introspectors for various database management systems (DBMSs). The Oracle introspector, however, remains solely my project. The Oracle introsp…
DataGrip 2023.3 EAP 2 is Out!
Hello, DataGrip community! The second Early Access Program version for DataGrip 2023.3 is here. If you want to try the new features before the official release, this is for you! Introspection scheduler It's now possible to set an introspection interval for each data source. Materialized…
DataGrip 2023.3 EAP is Open
Hello! We’re starting our 2023.3 Early Access Program (EAP) and, as usual, we invite you to try the latest features and improvements we’re adding to DataGrip ahead of the official release. Let’s take a look at what’s inside the first EAP build. DataGrip takes a long time to introspec…
DataGrip 2023.2: New UI with toolbar icons in the header, AI Assistant, time zones in the data editor, support for Redis Cluster
DataGrip 2023.2 is out!Here’s a sneak peek at what it has to offer. For a detailed description of this update, please visit our What’s New page. User Interface New UI: The toolbar icons have been moved to the header Improved main toolbar customization Light theme with light …