cypher查询

  1. 根据节点id查询,两种方式:
  • start n = node(77437402) return n
  • match (e:ent) where id(e)=77437402 return e
  1. 查询包含某个字符的节点或关系
    match (e:ent)-[r:hold5..]->() where e.name=~".集团.*" return e limit 500
  2. in
    match (n) where id(n) IN[111,22,34] return n
  3. 是否存在属性
    match (n) where exists(n.entname) return n
  4. start with和end with
    match (n) where n.name starts with ‘北京’ return n
  5. 包含
    match (n) where n.entname contains ‘北京’ return n limit 200

你可能感兴趣的:(cypher查询)