Once you've connected successfully, you should see an alert. Make sure to add your username and password in their respective places before entering the string in VS Code. To obtain your connection string, navigate to your "Clusters" page and select "Connect".Ĭhoose the "Connect using MongoDB Compass" option and copy the connection string. I went with the latter as my database is hosted on MongoDB Atlas. You can enter your connection details in the form, or use a connection string. If you've used MongoDB Compass before, then the form should be familiar. Once installed there will be a new MongoDB tab that we can use to add our connections by clicking "Add Connection". We can also install it by opening Extensions tab in VS Code ( CMD + Shift +X on Mac or Ctrl + Shift + X on Windows) and searching for "MongoDB". To get started, install the extension via the VS Code Marketplace. Quickly access the MongoDB Shell, to launch the MongoDB Shell from the command palette and quickly connect to the active cluster. Naturally, I was very excited to read the news given my love for VS Code and all things MongoDB.Ĭonnect to a MongoDB or Atlas cluster, navigate through your databases and collections, get a quick overview of your schema, and see the documents in your collectionsĬreate MongoDB Playgrounds, the fastest way to prototype CRUD operations and MongoDB commands Last week MongoDB announced the release of their extension "MongoDB for VS Code".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |