cypher - Can you use numbers for relationship types in Neo4j? -
i've created nodes, , relationships between them numerical types (eg '3'). creation works fine, i'm having trouble selecting them cypher.
since allows me create them, i'm assuming error i'm getting either i'm doing wrong, or bug?
here's example. first query works, , returns relationship type '3'. however, when change specify relationships of type 3, error.
neo4j-sh (?)$ start n=node(127) match n-[r]-m return n, r, m; ==> +--------------------------------------------------------------------------------+ ==> | n | r | m | ==> +--------------------------------------------------------------------------------+ ==> | node[127]{user_id:"1",name:"bob"} | :3[0] {} | node[118]{category:"state"} | neo4j-sh (?)$ start n=node(127) match n-[r:3]-m return n, r, m; ==> syntaxexception: string matching regex ``(``|[^`])*`' expected `3' found ==> ==> think should have better error message here? sending query cypher@neo4j.org. ==> ==> thank you, neo4j team. ==> ==> "start n=node(127) match n-[r:3]-m return n, r, m"
clearly needed sleep. banged head on while yesterday, figured out answer. apparently numbers fall "uncommon characters" category, , need surrounded backticks.
now works fine.
Comments
Post a Comment