diff --git a/lib/deja/query.rb b/lib/deja/query.rb index 0d6b698..748b2c2 100644 --- a/lib/deja/query.rb +++ b/lib/deja/query.rb @@ -50,6 +50,12 @@ def load_relationship_from_nodes(start_node, end_node, type) normalize(result_hash) end + def load_relationship_from_node_indexes(start_node, end_node, type) + cypher_query = Deja::Bridge.get_relationship_from_node_indexes(start_node, end_node, type) + result_hash = Deja.execute_cypher(cypher_query) + normalize(result_hash) + end + def create_relationship(start_node, end_node, label, attributes = {}) cypher_query = Deja::Bridge.create_relationship(start_node, end_node, label, attributes) result_hash = Deja.execute_cypher(cypher_query)