Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Cypherは一致関係でOR(|)をサポートしていますこのようなものが必要ですCypher query ='start n = node:node_auto_index(name = ashish'')MATCH n-[?: f&:t]-> k return k'
サイファーはこの1つをサポートしますn-[?:f |:t]-> k for 2リレーションは次のようになります G-[:f]-> k <-[:t] -H しかし、モートは2リレーションよりもどうでしょうか。3,4などと言う
それらを個別のMATCH要素としてリストするだけです
start n=node:node_auto_index(name='ashish') MATCH n-[:f]-> k, n-[:t]-> k, n-[:g]-> k return k
次のように、いくつかの一致ステートメントを分離できます。
MATCH n-[:A_REL_TYPE*]-end, n-[:ANOTHER_REL_TYPE*]-end