I'm trying to update the favorite Boolean to true in the following model.
I only need a success/failure return, so I've been trying update with a projection. However, I can't seem to get any further than selecting articles, but am not able to change the favorite value given the title name.
I am using the mongoDB node.js driver
Thanks!
_id: id,
news: [
{
name: bbc,
articles: [
{
title: 'flashpoint', favorite: false
}
]
}
]