I have a mongodb collection like this:-
{
"_id": ObjectId("52174bcb834806830e5447"),
"roles": [
{
"role": "admin"
},
{
"role": "user"
}
]
}
I need to add a new 'role' to the roles array. Like this {"role": "guest" }. How do I do that?