Looking to add a new project and update existing projects within an array.
Here's my plan in pseudo-JSON format.
How can I update Project A in MongoDB?
{
_id : ...,
userName: milad ,
projets : [
{ .. projectId, pName, location .... A },
{ .. projectId, pName, location .... B },
{ .. projectId, pName, location .... C },
]
}
What is the process for inserting Project D in MongoDB?
{
_id : ...,
userName: milad ,
projets : [
{ .. projectId, pName, location .... A },
{ .. projectId, pName, location .... B },
{ .. projectId, pName, location .... C },
{ .. projectId, pName, location .... D },
]
}