Skip to content

Commit fc52f07

Browse files
prashant-shahiPaul Korzhyk
authored andcommitted
Updating docs of simple example (#91)
1 parent 2743ad0 commit fc52f07

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

examples/simple/README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ for Dgraph.
99

1010
### Start Dgraph server
1111

12-
You will need to install [Dgraph v1.0.10 or above][releases] and run it.
12+
You will need to install [Dgraph v1.1.0 or above][releases] and run it.
1313

1414
[releases]: https://github.com/dgraph-io/dgraph/releases
1515

@@ -47,28 +47,22 @@ npm install
4747

4848
## Run the sample code
4949

50-
For Node.js >= v7.6, run:
50+
For Node.js, run:
5151

5252
```sh
5353
node index.js
5454
```
5555

56-
For Node.js < v7.6 or if you don't want to use the async/await syntax, run:
57-
58-
```sh
59-
node index-pre-v7.6.js
60-
```
61-
6256
Your output should look something like this (uid values may be different):
6357

6458
```console
6559
Created person named "Alice" with uid = 0x7569
6660

6761
All created nodes (map from blank node names to uids):
68-
blank-0: 0x7569
69-
blank-1: 0x756a
70-
blank-2: 0x756b
71-
blank-3: 0x756c
62+
alice: 0x7569
63+
dg.1447158641.7: 0x756a
64+
dg.1447158641.8: 0x756b
65+
dg.1447158641.9: 0x756c
7266

7367
Number of people named "Alice": 1
7468
{ uid: '0x7569',
@@ -83,4 +77,4 @@ Number of people named "Alice": 1
8377
DONE!
8478
```
8579

86-
You can explore the source code in the `index.js` and `index-pre-v7.6.js` files.
80+
You can explore the source code in the `index.js` file.

0 commit comments

Comments
 (0)