Skip to content

Commit b8ab0bf

Browse files
Znarkusshivaji-kharse
authored andcommitted
Update README.md with @grpc/grpc-js
1 parent 5647ee2 commit b8ab0bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ and understand how to run and work with Dgraph.
4646
Install using npm:
4747

4848
```sh
49-
npm install dgraph-js grpc --save
49+
npm install dgraph-js @grpc/grpc-js --save
5050
# If you are using Typescript, you might also need:
5151
# npm install @types/google-protobuf @types/protobufjs --save-dev
5252
```
5353

5454
or yarn:
5555

5656
```sh
57-
yarn add dgraph-js grpc
57+
yarn add dgraph-js @grpc/grpc-js
5858
# If you are using Typescript, you might also need:
5959
# yarn add @types/google-protobuf @types/protobufjs --dev
6060
```
@@ -93,7 +93,7 @@ The following code snippet shows just one connection.
9393

9494
```js
9595
const dgraph = require("dgraph-js");
96-
const grpc = require("grpc");
96+
const grpc = require("@grpc/grpc-js");
9797

9898
const clientStub = new dgraph.DgraphClientStub(
9999
// addr: optional, default: "localhost:9080"

0 commit comments

Comments
 (0)