{
"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"
}
]
}
上記のようなドキュメント構造があるとします。rid が 456 で、no が 2 の配列を取得する必要があります。したがって、配列を取得したいだけです。
{
"no": 2,
"info": "this is second"
}
どうすればそれができますか?