File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 99 return graph . query ( "CREATE (:person{name:'amit',age:30})" ) ;
1010} )
1111. then ( ( ) => {
12- return graph . query ( "MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[knows]->(a)" )
12+ return graph . query ( "MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[: knows]->(a)" ) ;
1313} )
1414. then ( ( ) => {
15- return graph . query ( "MATCH (a:person)-[knows]->(:person) RETURN a" )
15+ return graph . query ( "MATCH (a:person)-[: knows]->(:person) RETURN a" ) ;
1616} )
1717. then ( ( res ) => {
1818 while ( res . hasNext ( ) ) {
1919 let record = res . next ( ) ;
2020 console . log ( record . getString ( 'a.name' ) ) ;
2121 }
2222 console . log ( res . getStatistics ( ) . queryExecutionTime ( ) ) ;
23+ } )
24+ . catch ( ( err ) => {
25+ console . log ( err ) ;
2326} ) ;
You can’t perform that action at this time.
0 commit comments