これは私のコレクション構造です:
コール{
id:...,
..,
fieldA:{
fieldA1:[
{
...
}
],
...,
fieldA2:[
{
text: "ciao",
},
{
text: "hello",
},
...
]
}
...
}
たとえば、text="ciao" を使用してドキュメントを検索したい場合は、次を使用します: Db.coll.find({fieldA: { fieldA2: {$elementMatch:{ text:”ciao”} } } }) しかし、結果は何も... この操作を行うにはどうすればよいですか? ありがとうございます!