eq query requires indexing on the predicate which you want to query on. From the docs:
Index Required: An index is required for the
eq(predicate, ...)forms (see table below) when used at query root. Forcount(predicate)at the query root, the@countindex is required.
Try adding following to your schema file
<name>: string @index(exact) . .