The acronym ‘CRUD’ stands for Create, Read, Update and Delete. In this section, we will learn basic CRUD operations. CRUD operations can be extremely complex sometimes but we will not go into the complex stuff for two reasons. First, it is not under the scope of this chapter. Second, we will be doing a lot of CRUD operations in the following chapters.
Before we start learning CRUD, I must tell you that we will be using mongo shell for CRUD in the following sections.
Create or insert document
Data can be added to MongoDB in the form of documents. To add document, we use the insert function. We pass the document to be inserted to insert() function. Let’s see an example – Continue reading CRUD operations in MongoDB
I am a Mongodb DBA, Linux lover, Open Source Software supporter and a technology enthusiast at core.
Since Feb 2011, I have been into Mongodb and Linux servers from head to toe. I have designed and implemented large MongoDB clusters. Taken care of security, performance and extreme troubleshooting.
Nowadays, taking care of large sharded Mongodb cluster, which runs of linux servers on AWS infrastructure, is my sole responsibility.