Cypher - RETURN

检索节点的某些属性
检索节点的全部属性
检索节点和关联关系的某些属性
检索节点和关联关系的全部属性node

RETURN 
   <node-name>.<property1-name>,
   ........
   <node-name>.<propertyn-name>

//返回节点 /节点属性spa

match(n:User)
where n.id = 1
return n,n.name

//返回关系 /  关系属性排序

match (n:User)-[r]->(other:User)
where n.id = 1
return r , r.type
ip

//返回全部it

match(n:User),(u:User)
where n.id = 1 and u.id = 4
return *
im

//别名di

match(n:User)
where n.id = 1
return  n as admin
co

//去重block

match(n:User)
where n.id = 1
return distinct  n
去重

//其余

match(n:User)
where n.id = 1

return  n,'is',(n)-->()

//限制,排序  当结果中包含了null 值时,升序null 在末尾。对于降序 null 在最前

match(n:User)
return  n
order by n.id
limit 1

//跳跃

match(n:User)
return  n
order by n.id desc,n.name skip 1 limit 5

相关文章
相关标签/搜索