Inline graph pattern matching expresses nodes and relationships directly in Cypher syntax, including labels and properties. It lets a declarative query specify the desired pattern while the query engine retrieves matching data. section 3.1.2
Match a named person
MATCH (p:Person {name:'Satish'}) RETURN p section 3.1.2
Use inline patterns alongside filtering and result naming:
- Place labels and simple property matches inside the pattern. section 3.1.2
- Move additional conditions into WHERE; equivalent inline and WHERE forms can produce the same plan and results. section 3.1.2
- Remember that WHERE applies only to the preceding MATCH, and use AS to make returned columns clearer. section 3.1.2
Listing 3.6 Cypher statement that searches and retrieves any nodes with a label Person and a name property with a value of Satish
MATCH (p:Person {name:'Satish'})
RETURN p
View the complete Cypher listing for matching a Person node by label and name. section 3.1.2
