File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
258258Properties 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
276276This 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
288288And 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"})
293293RETURN p,r,t
294294----
295295
You can’t perform that action at this time.
0 commit comments