Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // I want to unset comments.moderated for embedded document in the whole collection
- {
- "_id" : ObjectId("4cb7f2d5fe38855e43897d13"),
- "title" : "Blog Examples Considered Harmful",
- "comments" : [
- {
- "by" : "Bob",
- "moderated" : true,
- "text" : "first!"
- },
- {
- "by" : "Jane",
- "moderated" : false,
- "text" : "first!!"
- }
- ]
- },
- {
- "_id" : ObjectId("4cb7f2d5fe38855e43897d13"),
- "title" : "Typical Blog Example",
- "comments" : [
- {
- "by" : "Joe",
- "moderated" : true,
- "text" : "first!"
- },
- ]
- }
Add Comment
Please, Sign In to add comment