MongoDB/PHP removing a specific array item inside the document
问题 Now, I have a document in my collection that I would like to delete on click, and those are comments inside the post document. Here's the structure: { "_id" : "design-patterns-vs-frameworks", "title" : "Design Patterns vs Frameworks", "category" : [ "Frameworks", " Design Patterns", " PHP" ], "date_time" : ISODate("2014-09-02T13:45:29.124Z"), "description" : "Frameworks vs Design Patterns", "content" : " Content!", "author" : "Maciej Sitko", "comments" : [ { "_id" : ObjectId(