節點 (標籤)spa
() (n) (:User) (n:User) (u:User{id:1,name:'may'})
ip
關係 (類型)rem
-- -[r]- -[:ORG]- -[r:ORG]- -[r:ORG{type:'aaa'}]- //無向關係
--> -[r]-> -[:ORG]-> -[r:ORG]-> -[r:ORG{type:'aaa'}]-> //有向關係字符串
模式變量 數學
p = (:User) -[:ORG]-> (:User)it
數據類型io
數值型 如: 1,2,
字符串 如:‘a’ , 「b」
布爾型 如: true ,false
節點 如: ()
關係 如: --> , -- ,<--
路徑 如: ()--() , ()<--()
map 如: {id:1}
list 如:[1,2,3]
null 任何類型
變量
運算符foreach
數學: + - * / % ^csv
比較: = <> < > <= >= IS NULL IS NOT NULL
布爾: AND OR XOR NOT
字符: + =~
列表: IN
鏈式比較: mathc(n) where 21 < n.age < 30 return n
注意與null 比較都返回 null:
null = null 結果 null
null <> null 結果 null
// 註釋
//
語句
讀語句: match / optional match / where / start / aggregation / load csv
寫語句:create / merge / set / delete / remove / foreach / create unique
通用語句:return / order by / limit / skip / with / unwind / all union / call