Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-17-2019 02:33 AM
Hello, I have a query and when I use the where clause, I get different results from a table and from a graph. I enclose my query and two images to show it:
MERGE (ipo: ipOrigen {ip: line[2]})
MERGE (ipd: ipDestino {ip: line[4]})
with ipo,ipd,line
CREATE (ipo)-[r:CONEXIONES {puertoOrigen: line[3], puertoDestino: line[5], fecha: date(datetime({epochseconds:TOINT(line[0])}))}]->(ipd)
MATCH (x:ipOrigen)-[z:CONEXIONES]->(y:ipDestino)
WHERE (z.puertoOrigen = "34354")
return x,y,z
Solved! Go to Solution.
09-17-2019 06:38 AM
Is is possible that the properties for the CONEXIONES relationship do not match your query? If in Neo4j Browser, if you have checked Connect Result Nodes, all relationships are shown between the two nodes.
Elaine
09-17-2019 06:38 AM
Is is possible that the properties for the CONEXIONES relationship do not match your query? If in Neo4j Browser, if you have checked Connect Result Nodes, all relationships are shown between the two nodes.
Elaine
09-17-2019 10:44 AM
I think Elaine is correct here. Check your Neo4j browser settings (gear icon in the lower left) and scroll to the bottom and ensure Connect result nodes
is not checked. While the feature is helpful when doing general exploration of the graph, it returns all relationships present between the nodes returned, and is likely what's causing the confusion here.
09-18-2019 12:00 AM
That´s it! Thanks for your help
All the sessions of the conference are now available online