The hyphen is Making cypher very unhappytype
という名前の関係があります。str-dist
ハイフンを処理する正しい方法は何ですか? (最終的に関係タイプの名前を変更することでこれを解決しましたが、学習のために興味があります)
// Intended Query:
MATCH n:Cars-[:str-dist]-m:Cars
RETURN n, m
// Tried all of the following, with no luck
MATCH n:Cars-[:str`-dist]-m:Cars
MATCH n:Cars-[:str\-dist]-m:Cars
MATCH n:Cars-[:"str-dist"]-m:Cars
MATCH n:Cars-[:'str-dist']-m:Cars
MATCH n:Cars-[:`str-dist`]-m:Cars