Playing around with MongoDB Embedded Documents. I was curious on how to manage/manipulate the one-to-many embedded documents in Mongo.
So, basically we can use these operators to work with embedded array in MongoDB:
- Insert --
$push
- Update --
$set
- Delete --
$pull