defer connection.Close()
client := dgo.NewDgraphClient(api.NewDgraphClient(connection))
but when alterschema as mention in docs it throws connection refused..
PASTE THE RESULTS OF `dgraph version` HERE.
</details>
I’m not using cloud… Try to connect d-graph Docker image with my project. I verify connection & that is o-k, but when alter command execute it throws either connection closed or while dial t-c-p :9080
Connection refused because grpc want access 9080 port but dockerfile doesn’t expose port that why connection refused. Now the issue both grpc & d-graph run side by side. Thankyou for help