Well, i’m new in Mongo and i’m trying to make a project, it’s basically an CRUD where you enter with what you’re doing now and when you started this job and when you will stop, then i create this model to my document:
db.Person.insert(
{
"Name": name,
"Job":{
"Function": "",
"Hour":{
"Started":"",
"Ended":""
}
},
"College":{
"Course": "",
"Hour":{
"Started":"",
"Ended":""
}
},
"Doing":[
{
"Activity":"",
"Hour":{
"Started":"",
"Ended":""
}
}
]
}
);
So, my question it’s about how can i return (in python) just the entire ‘Doing’ array, i so tried so hard but the only way i can see to solve this, is using ‘projection’ and ‘agreggate’, but I think there is some easy way to solve this