Merge branch 'feature/oxy-work' - Resolved conflicts in graph_wrapper.py
This commit is contained in:
commit
e39a453702
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"name": "oxy",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {}
|
||||||
|
}
|
||||||
|
|
@ -462,8 +462,8 @@ Tipos de relacionamento comuns:
|
||||||
MATCH (m:Memory {id: $id})
|
MATCH (m:Memory {id: $id})
|
||||||
OPTIONAL MATCH (m)-[r]->(target)
|
OPTIONAL MATCH (m)-[r]->(target)
|
||||||
RETURN count(DISTINCT target) as total_connections,
|
RETURN count(DISTINCT target) as total_connections,
|
||||||
count(DISTINCT r) as total_relationships,
|
count(DISTINCT r) as total_relationships,
|
||||||
[type(r) IN collect(DISTINCT type(r)) WHERE type(r) IS NOT NULL] as relationship_types
|
[type(r) IN collect(DISTINCT type(r)) WHERE type(r) IS NOT NULL] as relationship_types
|
||||||
""", id=memory_id)
|
""", id=memory_id)
|
||||||
|
|
||||||
record = result.single()
|
record = result.single()
|
||||||
|
|
@ -483,4 +483,4 @@ Tipos de relacionamento comuns:
|
||||||
"""Fecha conexão Neo4j"""
|
"""Fecha conexão Neo4j"""
|
||||||
if cls._driver:
|
if cls._driver:
|
||||||
cls._driver.close()
|
cls._driver.close()
|
||||||
cls._driver = None
|
cls._driver = None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue