DEV Community

Tarunika B
Tarunika B

Posted on

My Blog

Step 1:Get started by creating an account in Dev.to

Step 2:Then click create Post to start your Blog

Step 3:Download and log-in to MongoDB Compass

Step 4:log-in to MongoDb atlas and create a free cluster

Step 5:Download sample dataset in atlas

Step 6:creating a database under collections.

Step 7:Insert a Document in database.

Step 8:Add IP address in network access

Step 9:Add new database access by creating username and password, the role should be read and write ,at last make the database activation temporary

Step 10:In cluster--> connect-->select MongoDB connect-->copy the connection string

Step 11:Paste the copied connection String(in compass) and change with your username and password that was given in database access.

Step 12:successfully connected MongoDB compass with atlas

DOING CRUD OPERATIONS:
Step 13:CREAT-->Open the MongoDb Shell,change the DB to your name and using "db.collcection_name.insertOne({Name:"XYZ",regno:"123"})" insert the data's.


Step 14:READ-->reading the data in the collection(tarunika) using "db.collection_name.find()"

Step 15:UPDATE-->Doing updation of data using "db.collection_name.updateOne({Name:"XYZ"},{$set{Dept""CSE"}})"

Step 16:DELETE-->deleting the data using "db.collection_name.deleteOne({Name:"XYZ"})"

Did these in my NoSQL learning....!!!

Mentor: @santhoshnc
Peer's:@tharunika_e479edd6b0a7d33
@zera_shahadiya_beb2847a6c
@vihashini_1a209d60d5a2172
@sangamitra_p
@sugatha_2007
@sowmya_c_3fd69896647075fe
@shristi_pokhrel_7d1349f1b
@valarmathi_rs_2d9618cf47
@varshini_a66f2dc769447f4f

Top comments (1)

Collapse
 
zera_shahadiya_beb2847a6c profile image
Zera Shahadiya

That's amazing Tarunika!!