cypher - Get node by property value neo4j -
how can node propery value? mean that: i'll tried
match (n) has (n.name = 'mark') return n
but it's incorrect.
and how can find node max property value. have nodes property "views" , want see node max views.
so close...
match (n) n.name = 'mark' return n
it better include node label if have 1 serve segregate node other nodes of different types. way if have index on name property , label combination better search responsiveness. instance, can create index...
create index on :person(name)
and query person
label.
match (n:person) n.name = 'mark' return n
or alternatively can query way...
match (n:person {name:'mark'}) return n
to find person views...
match (n:person) return n, n.views order n.views desc limit 1
to find views without person...
match (n:person) return max(n.views)
Comments
Post a Comment