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

Hello! I am a newbie on all computational stuff, I am interested in graph networks and databases. I am working on Windows Subsystem for Linux on a Windows 10 operating system.

I am going through Dgraph Tour as the tutorial. On the tutorial page with the link of “http://localhost:8080”, there is “alter” as an endpoint. But when I start the localhost on my browser with the link of “http://localhost:8000/”, there is only “query” and “mutate” options. Why can’t I use the code that I can use on tutorial page and not on the localhost at the browser? Am I doing something wrong?

Additionally, how can I find the dataset about, companies, workers and bosses?

Thanks in advance!!!

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 {

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 https://dgraph.io/docs/ratel/schema/#bulk-edit-schema--drop-data

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.


1 Like

Thank you very much!!! :slight_smile: