相关的 meta / storage / graph info 日志信息(尽量使用文本形式方便检索)
想要在路径查找后根据点属性过滤,原始语句是
find shortest path with prop from -980682560400423797 to -2886766351330904521 OVER Legal,ActualController,HisLegal BIDIRECT upto 2 steps YIELD path AS p
看到论坛有 YIELD $-.p where "vertexid" in [n in nodes($-.p) | id(n)] 的写法
想问问 如果在路径中是Company,Person 两种点,想过滤name 属性不包含了敏感词如xxx
尝试 下面报错了, 请问这个该怎么改写
find shortest path with prop from -980682560400423797 to -2886766351330904521 OVER Legal,ActualController,HisLegal BIDIRECT upto 2 steps YIELD path AS p | YIELD $-.p where "xxx" not in [n in nodes($-.p) | n.Company.name]
FIND SHORTEST PATH WITH PROP FROM "Daenerys-Targaryen" to "Jon-Arryn" \
OVER * BIDIRECT UPTO 5 STEPS \
YIELD path AS p | \
YIELD $-.p AS pp \
WHERE 2 NOT IN [ n in NODES($-.p) | n.person.book ]
find shortest path with prop from -980682560400423797 to -2886766351330904521 OVER Legal,ActualController,HisLegal BIDIRECT upto 2 steps YIELD path AS p | YIELD $-.p as pp where [n in nodes($-.p) | properties(n).name] not contains "比特币"
“message”: “Failed to evaluate condition: ([__VAR_0 IN nodes($-.p) | properties($__VAR_0).name] NOT CONTAINS "比特币"). For boolean conditions, please write in their full forms like == <true/false> or IS [NOT] NULL.”
FIND SHORTEST PATH WITH PROP FROM "Daenerys-Targaryen" to "Jon-Arryn" \
OVER * BIDIRECT UPTO 5 STEPS \
YIELD path AS p | \
YIELD $-.p AS pp \
WHERE NOT ANY ( a IN [ n in NODES($-.p) | n.person.name ] WHERE a CONTAINS "ZZZZ" )
FIND all PATH with prop FROM "player100" to "team203" OVER * UPTO 5 STEPS YIELD path AS p1 | yield reduce(filter=false,n in nodes($-.p1)|filter or n.player.name contains "Manu" or n.team.name contains "Trail") as filter,$-.p1 as p2 | yield $-.p2 where $-.filter != true
find shortest path with prop from -980682560400423797 to -2886766351330904521 OVER Legal,ActualController,HisLegal BIDIRECT upto 2 steps YIELD path AS p | YIELD $-.p as pp WHERE NOT ANY ( a IN [ n in NODES($-.p) | properties(n).name] WHERE a CONTAINS "比特币称" )