File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ const grpc = require("grpc");
33
44// Create a client.
55function newClient ( ) {
6- const clientStub = new dgraph . DgraphClientStub (
7- "localhost:9080" ,
8- grpc . credentials . createInsecure ( ) ,
9- ) ;
10-
6+ const clientStub = new dgraph . DgraphClientStub ( "localhost:9080" , grpc . credentials . createInsecure ( ) ) ;
117 return new dgraph . DgraphClient ( clientStub ) ;
128}
139
@@ -28,13 +24,11 @@ async function setSchema(dgraphClient) {
2824
2925// Create a node for a person with name Alice.
3026async function createAlice ( dgraphClient ) {
31- // Create a new transaction
27+ // Create a new transaction.
3228 const txn = dgraphClient . newTxn ( ) ;
3329 try {
3430 // Create data.
35- const p = {
36- name : "Alice" ,
37- } ;
31+ const p = { name : "Alice" } ;
3832
3933 // Serialize it.
4034 const json = JSON . stringify ( p ) ;
You can’t perform that action at this time.
0 commit comments