So close...
MATCH (n) WHERE n.name = 'Mark' RETURN n
It is better to include the node shortcut if you have one that will serve to highlight your node from other nodes of different types. Thus, if you have a pointer to a name property and a combination of shortcuts, you will get a better search speed. For example, you can create an index ...
CREATE INDEX ON :Person(name)
And then a query labeled Person .
MATCH (n:Person) WHERE n.name = 'Mark' RETURN n
Or, alternatively, you can request this method ...
MATCH (n:Person {name:'Mark'}) RETURN n
To find the person with the most views ...
MATCH (n:Person) RETURN n, n.views ORDER BY n.views desc LIMIT 1
Find most views without a person ...
MATCH (n:Person) RETURN max(n.views)
Dave bennett
source share