Skip to content

Commit

Permalink
refactor: fix script to handle both relationships contains and belong…
Browse files Browse the repository at this point in the history
…s to
  • Loading branch information
JayGhiya committed Oct 29, 2024
1 parent 7e1fa10 commit 4648a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/export_data_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def export_graph_to_json():

# Query for all relationships and their properties
relationships_query = """
MATCH (start)-[r:CONTAINS]->(end)
MATCH (start)-[r]->(end)
RETURN id(r) as id, type(r) as type, properties(r) as properties,
elementId(start) as startNode, elementId(end) as endNode
"""
Expand Down

0 comments on commit 4648a89

Please sign in to comment.