Skip to content

Commit

Permalink
Merge pull request #1 from helxplatform/fix/graph-adapter-summary
Browse files Browse the repository at this point in the history
Fix bug that messes up part of summary creation in GraphInterface
  • Loading branch information
YaphetKG authored Dec 9, 2021
2 parents 28bd152 + 4b6bc04 commit f8b0c45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PLATER/services/util/graph_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def get_schema(self, force_update=False):
labels = labels if isinstance(labels, list) else[labels]
count = node['count']
query = f"""
MATCH (:{':'.join(labels)})-[e]->(b) WITH DISTINCT e , b
MATCH (n)-[e]->(b) WITH DISTINCT e , b
WHERE labels(n) in {labels}
RETURN
type(e) as edge_types,
count(e) as edge_counts,
Expand Down

0 comments on commit f8b0c45

Please sign in to comment.