Posts

Showing posts from March, 2023
Image
MangoDB CRUD Operations What is CRUD ? We are frequently heard about CRUD functions in the IT world. CRUD is nothing but a small thing simultaneously with significant functionality in the application.CRUD is the acronym for Create, Read, Update and Delete. Create: This operation needs to insert one document in the database  Read: This operation fetches the data from the database. Update: This operation changes the value or changes the data from the database. Delete: This operation removes data from the database. How to work CRUD operations in MongoDB? Now, Need to connect with your MongoDB database. Create Operations: CRUD operation has C means Creating one or more data in the database. Mango DB have two functions for inserting table one is a single insert and the other is a multiple insert. 1. insertOne()      ---> To insert the single data. 2. insertMany() ---> To insert the multiple data. insertOne() : The insertOne() command allows to insert of one data into the collection.