I'm trying to get records with empty value in a multi-item reference field. In the example below, I'm trying to get students who aren't assigned to any class.
The following query returns the error below:
let res = await wixData.query("Students").include("classes").isEmpty("classes").find();
Error message: " Cannot read property '$hasSome' of null "