我有两个这样的文件:
//school
{
Name:""
Major:"",
EnrollYear:1983
}
//schools
{
id: "user/0",
ownerId:""
//an array that contains schools
schools: [
{
Name:""
Major:"",
EnrollYear:1983
}
.....
]
}
如何以学校数组为条件查询ownerIds?
例如:如果我想获取B年在A学校,或者D年在C学校......(或更多)的学生的ownerIds,那么我的查询条件可能是这样的:
condition: [
{
Name:"A"
....
EnrollYear:B
},
{
Name:"C"
...
EnrollYear:D
}
]