Neo4j node MATCH with relationship

62 views
Skip to first unread message

bo Sun

unread,
Jul 15, 2022, 8:35:55 AM7/15/22
to golang-nuts
on Neo4j webpage, following cypher command could return two node
       MATCH p=(n:MAC {MacAddr:'0022.bdf8.0005'})-[:UP_LINK]->()RETURN p
In these two nodes, relationship is "UP_LINK", source node is 'n' with a specific value, and it also return destination node,

but in neo4j-go-driver:
the following code:
      cypher := `MATCH p=(n:MAC {MacAddr:'0022.bdf8.0005'})-[:UP_LINK]->()RETURN p`
      result, err := tx.Run(Cypher, nil)
it could not match any node and result.Err() is nil.

anyone can comments on this?

Thanks and regards!
bosun.
Reply all
Reply to author
Forward
0 new messages