我有一个名为 Record
的文档,其中包含一个嵌套文档作为 Athlete
。在 JSON 中,结构如下:
{
"Id": "000000000000000000000000",
"Description": "sample string 1",
"Athlete": {
"Id": "123456789101112131415161",
"Name": "sample string 2",
"Username": "sample string 3",
...
},
...
}
如果我有运动员的ID,想要检索他们的记录,该如何查询这个结构来检索基于 Athlete.Id
的 Record
对象呢?