Error when there is no document published for particular custom type

Hi.
I am using the following predicate to fetch data of a particular custom type(Student)
[any(my.student.name, ["ABC", "XYZ"])]
I get results if there is more than 1 document related to the student is published.
But I get a syntax error if there is no document published for that particular custom type.
"[function any(..)] unexpected field ‘my.student.name’ on line:1 col:7 in query"
Is this the expected behavior of prismic?

Hi Nelson,

This is the expected behaviour at the minute when you are querying a document that doesn't exist. We hope to improve the error messaging in the future.

Thanks.