hey JCzz, check this PR
https://github.com/dgraph-io/dgraph/pull/4382
You need to do something like this
curl -X POST localhost:8080/alter -d \
'name: string @index(term) .
type Person {
name
}'
Note that the error msg says “Schema does not contain a matching predicate for field name” this means you didn’t define the “name” pred before using it.