Octetful Notes - Graphs - Neo4J

This section covers details on the neo4j graph database.

Subgraphs

Data Import Guides


Dynamic Relationship Loading

To create dynamic relationship labels in Neo4j, you could call a stored proc as follows:

LOAD CSV WITH HEADERS FROM "file:///relations.csv" AS row
MATCH (f:Node), (s:Node)
WHERE f.Name = row.FromNode
AND s.Name = row.ToNode
CALL apoc.create.relationship(f, row.RelationType,{}, s) YIELD rel
REMOVE rel.noOp