Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
MongoDB how to update documents
Play lesson

MongoDB tutorial for beginners 🍃 - MongoDB how to update documents

4.0 (3)
20 learners

What you'll learn

This course includes

  • 1 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#MongoDB #course #tutorial 00:00:00 updateOne() 00:04:14 updateMany() 00:07:30 MongoDB Compass db.students.updateOne({name:"Spongebob"}, {$set:{fullTime:true}}) db.students.updateOne({_id: ObjectId("642c0e70985f18e1bcf24d35")}, {$set:{fullTime:false}}) db.students.updateOne({_id: ObjectId("642c0e70985f18e1bcf24d35")}, {$unset:{fullTime:""}}) db.students.updateMany({}, {$set:{fullTime:false}}) db.students.updateOne({name:"Gary"}, {$unset:{fullTime:""}}) db.students.updateOne({name:"Sandy"}, {$unset:{fullTime:""}}) db.students.updateMany({fullTime:{$exists:false}}, {$set:{fullTime:true}})

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere