enter image description here
what I am trying to achieve is load data from a specific collection(teacher) of my database. So I am using a function called isTeacher().