1 设置边的数组属性
CREATE (n:Person { name: 'tom', title: 'Developer' })
CREATE (n:Person { name: 'john', title: 'Developer' })
create (a:Person{name:"tom"})-[r:RELTYPE{rtype:["r1", "r1"]}]->(b:Person{name:"john"})
return a, b, r
2 过滤查询
match (a:Person) -[r:RELTYPE] -> (b:Person)
where "r1" in r.rtype
return a, r, b
3 查看
match (n)
return (n)
references
2 Querying on multiple labels and property values appear not to use indexes https://community.neo4j.com/t/querying-on-multiple-labels-and-property-values-appear-not-to-use-indexes/3630