Skip to main content
InterviewHubPRO
Section Overview
Q4

Question 4 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

8%
MongoDB & NoSQL (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What are the basic MongoDB CRUD operations?

junior LevelDatabases & SQL

In Simple Words:

  • Create: db.collection.insertOne({ ... }) or insertMany([ ... ])
  • Read: db.collection.find({ status: "active" }) or findOne({ _id: ... })
  • Update: db.collection.updateOne({ _id: ... }, { $set: { status: "shipped" } }) or updateMany()
  • Delete: db.collection.deleteOne({ _id: ... }) or deleteMany({ ... })