Moved from GitHub dgraph-js/49
Posted by avishwakarma:
I am not able to connect to dgraph using dgraph-js
var clientStub = dgraph.DgraphClientStub(
‘127.0.0.1:9080’, // tried all other ports 5080 7080 8080
grpc.credentials.createInsecure()
);
var client = dgraph.DgraphClient(clientStub);
console.log(clientStub) // undefined
console.log(client) // undefined
Executed the below commands and dgraph-ratel is working fine
dgraph zero
dgraph alpha --lru_mb 2048 --zero localhost:5080
dgraph-ratel
My dgraph-ratel is connected on localhost:8080
Any idea what I have missed?