In Node and Mongoose, I'd like to remove an object from an array in a document. The structure is like this.
{
_id: ObjectId,
title: String,
tags: [
{ text: String },
{ text: String }
]
}
I will look up an item by it's _id, but then I want to look within the tags for a certain String and remove that from the array.