Error when there is no document published for particular custom type

I am using the following predicate to fetch data of a particular custom type(Student)
[any(, ["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 ‘’ 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.