Search code examples
cyphergraph-databasesapache-age

Apache AGE- How to Implement relationship between 2 graphs


If we have 2 graph databases 'A' and 'B' and currently there is no relationship between nodes A graph database and B graph database, and now I have to add a relationship between a node of A and a node of B then how woud I do that using AGE. E.g A can be an employees Graph Database, and B can be any car dealers Graph Database, and now I want to add the relationship that which member wants which car, how would I do that using Apache AGE.


Solution

  • There is not way to create a relationship between two nodes in separate graphs. You can write some SQL to create a crosswalk table between two nodes in other graphs, but if you want to create an edge between two nodes, they need to be in the same graph.