I have a todo app where I have sub categories
I have a category collection with a document field called: categoryArray
when you are in a sub category there are a _id in the url: BadeRS2NFWND8p9tz
howto select the document with the _id in the url and get the field: categoryArray from it and insert it in a new document?
Categories.update({
_id: newDocId
},
{
$push: {
categoryArray: parrentCategoryArray???
},
});