Error: Predicate name is not indexed

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. For count(predicate) at the query root, the @count index is required.

Try adding following to your schema file
<name>: string @index(exact) . .