Memgraph fix (#1062)
<!-- .github/pull_request_template.md --> ## Description Updated get_edges function so the output id matches internal ID ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com> Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
This commit is contained in:
parent
3a6e973c35
commit
c600eb7a56
1 changed files with 3 additions and 3 deletions
|
|
@ -155,7 +155,7 @@ class MemgraphAdapter(GraphDBInterface):
|
||||||
MERGE (node {id: $node_id})
|
MERGE (node {id: $node_id})
|
||||||
ON CREATE SET node:$node_label, node += $properties, node.updated_at = timestamp()
|
ON CREATE SET node:$node_label, node += $properties, node.updated_at = timestamp()
|
||||||
ON MATCH SET node:$node_label, node += $properties, node.updated_at = timestamp()
|
ON MATCH SET node:$node_label, node += $properties, node.updated_at = timestamp()
|
||||||
RETURN ID(node) AS internal_id,node.id AS nodeId
|
RETURN ID(node) AS internal_id, node.id AS nodeId
|
||||||
"""
|
"""
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
|
|
@ -845,8 +845,8 @@ class MemgraphAdapter(GraphDBInterface):
|
||||||
result = await self.query(query)
|
result = await self.query(query)
|
||||||
edges = [
|
edges = [
|
||||||
(
|
(
|
||||||
record["properties"]["source_node_id"],
|
record["source"],
|
||||||
record["properties"]["target_node_id"],
|
record["target"],
|
||||||
record["type"],
|
record["type"],
|
||||||
record["properties"],
|
record["properties"],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue