I have a document called Record which contains an Athlete as a nested document. The structure looks like this in JSON:
{
"Id": "000000000000000000000000",
"Description": "sample string 1",
"Athlete": {
"Id": "123456789101112131415161",
"Name": "sample string 2",
"Username": "sample string 3",
...
},
...
}
How do you query this structure to retrieve the Record object based on the Athlete.Id? I.E. If i have the ID of the athlete and I want to retrieve their record, how would you do this?