MongoDB With VS Code

Introduction

 
We can run MongoDB using VS code. We can create a playground on vs code,  and get some help with the MongoDB command.
 
It's easy to implement. 
 
Now we will start.
 
Step 1
 
Open the vscode and hit cntrl+shift+X or goes to view, under the view you saw extensions
 
Mongodb with vs code
 
Step 2
 
Open the extension box open and enter the MongoDB, after entering MongoDB you'll see the extension MongoDB for vscode.
 
Mongodb with vs code
 
Step 3 
 
Now you have just installed it. After installation, you will see the MongoDB icon.

Mongodb with vs code
 
Step 4
 
Now click the MongoDB icon And you will see the connect button
 
Mongodb with vs code 
 
Step 5
 
Click connect and it opens the dialog box where you enter the connection string, after entering the connection string you  just hit enter.
 
 mongodb+srv://ajay1:*****@cluster0.qmqmt.mongodb.net/test?authSource=admin&replicaSet=Cluster0-shard-0&readPreference=primary&appname=MongoDB%20Compass&ssl=true
 
Mongodb with vs code
 
Step 6
 
Now you click create a new playground 
 
Mongodb with vs code
 
Step 7
 
After clicking create a new playground you will see the playground where you have run your MongoDB command.
 
On the right-hand side top, you see a play button, click on it. 
 
Mongodb with vs code
 
Step 8
 
After clicking the play button you can see the result.
 
Mongodb with vs code
 

Conclusion

 
In this blog we have learned how to run the MongoDB command with vs code, it will make your work easy. 
 
ENJOY CODING!!!!