Field Has Not Been Indexed
Erroneous Code Example
This error occurs when you try to use a field in an operation that requires the field to be indexed, but the field has not been marked withINDEX in the schema.
Solution
Add theINDEX modifier to the field in your schema.