I have two documents like this:
//school
{
Name:""
Major:"",
EnrollYear:1983
}
//schools
{
id: "user/0",
ownerId:""
//an array that contains schools
schools: [
{
Name:""
Major:"",
EnrollYear:1983
}
.....
]
}
How to take an array of schools as condition to query ownerIds?
for example:if I want to get the ownerIds of students who have been in A school at B year,or been in C school at D year...(or more),then my query condition may like this:
condition: [
{
Name:"A"
....
EnrollYear:B
},
{
Name:"C"
...
EnrollYear:D
}
]