

If you use Terraform to manage your infrastructure, MongoDB for VS Code helps you get started with the MongoDB Atlas Provider. In the extension's settings you can switch between the two. The shell binary can be either the new MongoDB Shell ( mongosh) or the legacy mongo shell. The shell binary needs to be in your $PATH. Launch the MongoDB Shell from the command palette to quickly connect to the same cluster you have active in VS Code. You can open documents in an editor tab, edit them and save the changes back to MongoDB. MongoDB for VS Code makes it extremely easy to make changes to documents in your collections. You can't run a playground and you won't get completions if you are not connected. Make sure you are connected to a server or cluster before using a playground. Export your queries and aggregations to one of the supported languages: Java, Node, C#, and Python 3.Build aggregations quickly with helpful and well-commented stage snippets.Save your playgrounds in your workspace and use them to document how your application interacts with MongoDB.Edit documents returned by your playground.Click the play button in the tab bar to see the output. Run your playgrounds and see the results instantly.Prototype your queries, aggregations, and MongoDB commands with MongoDB syntax highlighting and intelligent autocomplete for MongoDB shell API, MongoDB operators, and for database, collection, and field names.MongoDB Playgrounds are the most convenient way to prototype and execute CRUD operations and other MongoDB commands directly inside VS Code. Get a quick overview of your schema and your indexes.Edit documents and save changes to the database.Navigate your databases, collections, and read-only views.MongoDB for VS Code makes it easy to work with MongoDB, whether your own instance or in MongoDB Atlas.
