File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ and understand how to run and work with Dgraph.
46
46
Install using npm:
47
47
48
48
``` sh
49
- npm install dgraph-js grpc --save
49
+ npm install dgraph-js @ grpc/grpc-js --save
50
50
# If you are using Typescript, you might also need:
51
51
# npm install @types/google-protobuf @types/protobufjs --save-dev
52
52
```
53
53
54
54
or yarn:
55
55
56
56
``` sh
57
- yarn add dgraph-js grpc
57
+ yarn add dgraph-js @ grpc/grpc-js
58
58
# If you are using Typescript, you might also need:
59
59
# yarn add @types/google-protobuf @types/protobufjs --dev
60
60
```
@@ -93,7 +93,7 @@ The following code snippet shows just one connection.
93
93
94
94
``` js
95
95
const dgraph = require (" dgraph-js" );
96
- const grpc = require (" grpc" );
96
+ const grpc = require (" @ grpc/grpc-js " );
97
97
98
98
const clientStub = new dgraph.DgraphClientStub (
99
99
// addr: optional, default: "localhost:9080"
You can’t perform that action at this time.
0 commit comments