Query Collection filtered by DocRef null

Actions & Logic

Hi All

Im trying to get all the students assigned to a specific teacher.

Im having an issue with my filtering, I have 2 collections: Students and Teachers, into students I have a column "teacher" for the teacher assigned to hat student.
When I put into a ListView the query collection "Students" and filter by "Teacher doc reference", it returns null. I tried also with a custom action, and it is the same, I got data without the filtering.

Student Collection:

The custom action without the Where condition is working.

What have you tried so far?

I tried to get the students without the filter and no issues

Create a custom action, same behavior, without where condition I got all the students.

Did you check FlutterFlow's Documentation for this topic?
Yes
1