Open Analect opened 8 years ago
You have to return relationships too or paths The browser sends a second query to pull relationships
Currently it looks for certain common property-keys. But that could be made configurable
Von meinem iPhone gesendet
Am 14.07.2016 um 00:16 schrieb Analect notifications@github.com:
@jexp Thanks for this utility. I was trying to get it to work against my own dataset ... while it brings back the nodes ... it's not rendering any relationships. Should it be able to handle these? I'm working from the neod3 default branch. This is what I'm seeing.
I altered the cypher query to bring back relationship types, thinking that might work, as per table below, but it doesn't fix the graph.
This is the equivalent call using the built-in neo4j-browser .. which works fine ... even if relationships aren't explicitly specified as part of the RETURN. MATCH (n:project{id:'xxxxx'})-[:HAS_STRUCTURE]-(o:structnode)-[:BRANCH_OF]-(p:structnode) RETURN n, o, p;
Also, is there a way to control which property field is used for naming the nodes? Thanks.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Hi! I have the same problem, trying to plot a grpah with relationships... Looking for the error in Google Chrome Debugger, it seems like relationships are not returned by the neo4j database.
Could you help me to find out a solution for this?
Thanks Nacho
Hi this is because you are inserting the wrong query to neo4j. If you want to return all relationships related to a specific node then use:
MATCH graph = (a)-[*]-(b) where ID(a)=222
RETURN graph
to match with an id of a node or use
MATCH graph = (a)-[*]-(b) where a.propertyname="propertyvalue"
RETURN graph
to match the node with a label you have given. Thanks Divesh
@jexp Thanks for this utility. I was trying to get it to work against my own dataset ... while it brings back the nodes ... it's not rendering any relationships. Should it be able to handle these? I'm working from the neod3 default branch. This is what I'm seeing.
I altered the cypher query to bring back relationship types, thinking that might work, as per table below, but it doesn't fix the graph.
This is the equivalent call using the built-in neo4j-browser .. which works fine ... even if relationships aren't explicitly specified as part of the RETURN. MATCH (n:project{id:'xxxxx'})-[:HAS_STRUCTURE]-(o:structnode)-[:BRANCH_OF]-(p:structnode) RETURN n, o, p;
Also, is there a way to control which property field is used for naming the nodes? Thanks.