RethinkDB newb here and I can't figure this one out.
Lets say I have a table named mydata
with documents that have the following basic structure:
{
"SomeAttirbute": "SomeValue",
"team": [
{
"name": "john" ,
"other": "stuff",
} ,
{
"name": "jane" ,
"other": "junk",
}
] ,
...
}
How do I get all documents in the mydata
table that have john
for a value of the name
attribute for any of the elements in the team
array?