I need to make a change to the editing
field:
{
"_id" : "C7PgEtzToNwHgJb6e",
"metadata" : {
"type" : "anything",
"editing" : false
}
}
If I execute the following code...
Collection.update(
{ _id: id },
{ $set: { metadata: { editing: true } } }
);
...the type
field will be deleted:
{
"_id" : "C7PgEtzToNwHgJb6e",
"metadata" : {
"editing" : true
}
}