{
"name": "comments",
"rid": 456,
"refs": [
{
"no": 1,
"info": "this is first"
},
{
"no": 2,
"info": "this is second"
},
{
"no": 3,
"info": "this is third"
}
]
}
{
"name": "comments",
"rid": 321,
"refs": [
{
"no": 1,
"info": "this is first-h"
},
{
"no": 2,
"info": "this is second-h"
},
{
"no": 3,
"info": "this is third-h"
}
]
}
Assume I have a document structure like above. I need to get the array whose rid is 456 and no is 2. So, I just want to get the array
{
"no": 2,
"info": "this is second"
}
How could I do that?