Why there is no "Alter" as endpoint in my localhost?

The Alter endpoint is part of Dgraph’s APIs. So it will be located at the (any)Alpha instance address. e.g. localhost:8080/alter - As this is an API, you have to do an operation to interact with it. For example the command below using cURL.

curl -X POST localhost:8080/alter -d \
'name: string @index(term) .
type Person {
   name
}'

The command above sent via terminal will interact with the Alter API. Another way to do the same operation is use the Alter method in Dgraph’s clients.

Another easy way of altering the schema is going to the Schema Panel on Ratel see this link Schema - Ratel

Those datasets were made for that Tour only. Must of it was created during the writing of the tutorial. You gonna find them in the late(or previous) pages.

If you have more questions feel free to ping.

Cheers.

1 Like