{
"botID": 2003633449,
"userid": [
{
"_id": {
"$oid": "6234a83f9938ad0f78e5e24d"
},
"tgid": 923886862,
"exam_year": 2023,
"stream": "maths",
"phone_no": null,
"datetime": 1647618111906,
"pendingpdf": [
{
"_id": {
"$oid": "6234a85d9938ad0f78e5e253"
},
"requestid": "923886862007001",
"filename": "One",
"fileid": "BQACAgUAAxkBAAJFm2I0qFjHzh9CYWzN2zGcQkIMZpO1AAK4BQACI4mBVP87Va014mKqIwQ",
"bid": 7,
"botssendpdf_messageid": 17822,
"buttonpath": "Pdf Location = nine",
"submitdatetime": 1647618141031
},
{
"_id": {
"$oid": "6234a8d7354e484568a437cb"
},
"requestid": "923886862009001",
"filename": "Jukks",
"fileid": "BQACAgUAAxkBAAJFq2I0qMnLU5WIL_79DYl253RlrcdiAAJCBgACnQSYVZqPhGMUj0WNIwQ",
"bid": 9,
"botssendpdf_messageid": 17838,
"buttonpath": "Pdf Location = nine > rum",
"submitdatetime": 1647618263459
},
{
"_id": {
"$oid": "6234aa01c9f2fa1114c29c7c"
},
"requestid": "9238868620010001",
"filename": "Buv",
"fileid": "BQACAgUAAxkBAAJFvGI0qfY5i0n4AAFhlxn8YS3CSHHXpgACQgYAAp0EmFWaj4RjFI9FjSME",
"bid": 10,
"botssendpdf_messageid": 17855,
"buttonpath": "Pdf Location = nine > rum > eeee",
"submitdatetime": 1647618561129
},
{
"_id": {
"$oid": "6234c418c5c6693ab84f1d42"
},
"requestid": "923886862009001",
"filename": "www",
"fileid": "BQACAgUAAxkBAAJGU2I0xBJ4kIxDD_wXKP9aOayAcqPfAAJEBAACbJCAVOPMLu8qKcd8IwQ",
"bid": 9,
"botssendpdf_messageid": 18006,
"buttonpath": "Pdf Location = nine > rum",
"submitdatetime": 1647625240367
},
{
"_id": {
"$oid": "6234c465c5c6693ab84f1d6d"
},
"requestid": "9238868620010001",
"filename": "ddd",
"fileid": "BQACAgUAAxkBAAJGeGI0xGBoB_3pyUlsozMoll38KL3LAALDBgACQLKJVZid9i3_J4ovIwQ",
"bid": 10,
"botssendpdf_messageid": 18043,
"buttonpath": "Pdf Location = nine > rum > eeee",
"submitdatetime": 1647625317087
}
],
"approvedpdf": []
}
]
}
}
The above dict is my mongodb document .
I need to get data using below condition .
"botId" = 2003633449
and
"tgid" = 923886862
and
"bid" = 7
Any mongodb query for it?
I need mongoshell command for it. Any method to do it?
I tried $elemnetmatch , $and operators using do this. But results is null. Anyone can give example to above 3 conditions using get data from above my mongodb document .