I have a realm object mySchool which contains a realm list of class myClass which contains a realmlist of myStudents.
myschool{
realmsList<myClass>{
realmList<myStudests>{
bool isPresent
}
}
}
something like this.
now I need to fetch the schools with a list of classes with present students.
I need to filter out the students who are not present. and the class with no students.
I tried where("myClass.myStudent.ispresent",true)
but it dosen't work.
is it possible to filter sublist in realm? How do I create such a list in realm?
from realm apply where clause to the innerRealm list
No comments:
Post a Comment