From b8ab0bfc25e5c7dbc2bea8f73cb16f10ad2f405b Mon Sep 17 00:00:00 2001 From: Markus Hedlund Date: Tue, 27 Feb 2024 10:41:44 -0500 Subject: [PATCH] Update README.md with @grpc/grpc-js --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 367a19f..99484e6 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ and understand how to run and work with Dgraph. Install using npm: ```sh -npm install dgraph-js grpc --save +npm install dgraph-js @grpc/grpc-js --save # If you are using Typescript, you might also need: # npm install @types/google-protobuf @types/protobufjs --save-dev ``` @@ -54,7 +54,7 @@ npm install dgraph-js grpc --save or yarn: ```sh -yarn add dgraph-js grpc +yarn add dgraph-js @grpc/grpc-js # If you are using Typescript, you might also need: # yarn add @types/google-protobuf @types/protobufjs --dev ``` @@ -93,7 +93,7 @@ The following code snippet shows just one connection. ```js const dgraph = require("dgraph-js"); -const grpc = require("grpc"); +const grpc = require("@grpc/grpc-js"); const clientStub = new dgraph.DgraphClientStub( // addr: optional, default: "localhost:9080"