Skip to content

Commit deed575

Browse files
committed
[neo4j] adding query examples in readme
1 parent cf4eaaa commit deed575

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/Neo4jPlugin/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ With this configuration, you can define precisely what you want to import.
5050
It's really useful when you want to project your graph (ex: create the colleagues graph when in your database you have `(:Person)-[:WORK_AT]->(:Company)` )
5151

5252
The node query must return a field named *id* that is the unique identifier of your node.
53-
The edge query must return a field named *id* that is the unique identifier of your edge, but also a *sourceId* & *targetId* that must match an id from the node query
53+
Ex: `MATCH (n) RETURN id(n) AS id, labels(n) AS labels`
5454

55+
The edge query must return a field named *id* that is the unique identifier of your edge, but also a *sourceId* & *targetId* that must match an id from the node query
56+
Ex: `MATCH (n)-[r]->(m) RETURN id(r) AS id, type(r) AS type, id(n) AS sourceId, id(m) AS targetId`
5557

0 commit comments

Comments
 (0)