MATCH ()-[relationship]->()
RETURN TYPE(relationship) AS type, COUNT(relationship) AS amount
ORDER BY amount DESC;
Run Code Online (Sandbox Code Playgroud)
第一行指定了定义关系变量的模式,用于确定第二行的类型和数量。
?????????????????????????
?"type" ?"amount"?
?????????????????????????
?"BELONGS_TO" ?1234567 ?
?????????????????????????
?"CONTAINS" ?432552 ?
?????????????????????????
?"IS_PART_OF" ?947227 ?
?????????????????????????
?"HOLDS" ?4 ?
?????????????????????????
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1184 次 |
| 最近记录: |