Skip to content

Commit 0821dbf

Browse files
authored
Merge pull request #4 from judas-christ/master
fixed readme relationship type
2 parents bb55793 + b58c905 commit 0821dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ graph
2929
return graph.query("CREATE (:person{name:'amit',age:30})");
3030
})
3131
.then( () => {
32-
return graph.query("MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[knows]->(a)")
32+
return graph.query("MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(a)")
3333
})
3434
.then( () => {
35-
return graph.query("MATCH (a:person)-[knows]->(:person) RETURN a")
35+
return graph.query("MATCH (a:person)-[:knows]->(:person) RETURN a")
3636
})
3737
.then( (res) => {
3838
while(res.hasNext()){

0 commit comments

Comments
 (0)