# 条件过滤参数
通过各种条件过滤的组合,获取不同的数据。
# “node::” “edge::” 类型前缀
用于标记类型。
例:
node::user.name = \"ezoo\"
# “=” “!=” “>” “>=” “<” “<=” 比较符号
比较符号用于对各个数值的比较。
例:
node::user.name = \"ezoo\"
其中user
是边或者节点的类型名称,name
是边或者节点的属性名称,ezoo
是待比较的属性值。
# “IN” “NOTIN”
IN
和NOTIN
用于判断包含和非包含。
例:
node::user.age IN (20, 25, 30, 40)
其中user
是边或者节点的类型名称,age
是边或者节点的属性名称,(20, 25, 30, 40)
是待匹配的属性值列表。
# “AND” “OR”
AND
和OR
用于处理逻辑关系。
例:
node::user.name = \"ezoo\" AND node::user.age IN (20, 25, 30, 40)
node::user.age = 20 OR node::user.age = 30
# “(” “)”
(
和)
用于提升部分逻辑的优先级。
例:
node::user.age = 20 AND (node::user.name = \"ezoo\" OR node::user.name = \"mysql\")
# node.type” edge.type”
node
和edge
用于标记节点和边的KEY。
例:
node.type = \"user\"
edge.type = \"eat\"
其中node.type = \"user\"
表示节点的类型名称是user
,edge.type = \"eat\"
表示边的类型名称是eat
。