I am using mongodb + node for rendering pages
I have a mongodb collection with data like Below,
I want the data which is under Mark and which is under the date 2019-06-21
How to match the field with the field which is inside array?
Both condition should match . can someone guide me How to give condition for this collection ?
_id:5d0c9f38082276944579ba3e
user_Name:"Mark"
rows:[
{
project_ID:"xxxx"
issue_Summary:"aaaa"
short_Description:"aaaa"
start_Time:"02:02"
end_Time:"03:02"
total_Time:""
_id:5d0ca14e138a7628948804af
date:2019-06-21 05:30:00.0001
}
{
project_ID:"yyyy"
issue_Summary:"bbb"
short_Description:"bbb"
start_Time:"02:02"
end_Time:"03:02"
total_Time:""
_id:5d0ca14e138a7628948804af
date:2019-06-21 05:30:00.0001
}
]
_id:5d0c9f38082276944579ba3e
user_Name:"Mark"
rows:[
{
project_ID:"xxxx"
issue_Summary:"aaaa"
short_Description:"aaaa"
start_Time:"02:02"
end_Time:"03:02"
total_Time:""
_id:5d0ca14e138a7628948804af
date:2019-06-22 05:30:00.0001
}
{
project_ID:"yyyy"
issue_Summary:"bbb"
short_Description:"bbb"
start_Time:"02:02"
end_Time:"03:02"
total_Time:""
_id:5d0ca14e138a7628948804af
date:2019-06-22 05:30:00.0001
}
]
_id:5d0c9f38082276944579ba3e
user_Name:"Dany"
rows:[
{
project_ID:"xyz"
issue_Summary:"aaaa"
short_Description:"aaaa"
start_Time:"02:02"
end_Time:"03:02"
total_Time:""
_id:5d0ca14e138a7628948804af
date:2019-06-21 05:30:00.0001
}
{
project_ID:"yzx"
issue_Summary:"bbb"
short_Description:"bbb"
start_Time:"02:02"
end_Time:"03:02"
total_Time:""
_id:5d0ca14e138a7628948804af
date:2019-06-21 05:30:00.0001
}
]
It saves separate collection for each particular Date