Skip to content

Commit f58fa0f

Browse files
authored
Fixes after user feedback
1 parent 84e8809 commit f58fa0f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/ROOT/pages/cypher.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ image::cypherintro-properties.svg[]
251251

252252
[source,cypher]
253253
----
254-
CREATE (p:Person {name:'Sally'})-[r:IS_FRIENDS_WITH]->(p:Person {name:'John'})
255-
RETURN p, r
254+
CREATE (sally:Person {name:'Sally'})-[r:IS_FRIENDS_WITH]->(john:Person {name:'John'})
255+
RETURN sally, r, john
256256
----
257257

258258
Properties are enclosed by curly brackets (`{}`), the key is followed by a colon, and the value is enclosed by single or double quotation marks.
@@ -270,7 +270,7 @@ Consider this example:
270270

271271
[source, cypher]
272272
----
273-
(p:Person {name: "Sally"})-[r:LIKES]->(g:Technology {type: "Graphs"})
273+
(sally:Person {name:'Sally'})-[l:LIKES]->(g:Technology {type: "Graphs"})
274274
----
275275

276276
This bit of Cypher represents a pattern, but it is not a query.
@@ -282,14 +282,14 @@ For example, you can add this information to the database using the link:{docs-h
282282

283283
[source, cypher]
284284
----
285-
CREATE (p:Person {name: "Sally"})-[r:LIKES]->(t:Technology {type: "Graphs"})
285+
CREATE (sally:Person {name: "Sally"})-[r:LIKES]->(t:Technology {type: "Graphs"})
286286
----
287287

288288
And once this data is written to the database, you can retrieve it with this pattern:
289289

290290
[source, cypher]
291291
----
292-
MATCH (p:Person {name: "Sally"})-[r:LIKES]->(t:Technology {type: "Graphs"})
292+
MATCH (sally:Person {name: "Sally"})-[r:LIKES]->(t:Technology {type: "Graphs"})
293293
RETURN p,r,t
294294
----
295295

0 commit comments

Comments
 (0)