Compare commits

...

2 Commits

2 changed files with 9 additions and 3 deletions

6
package-lock.json generated Normal file
View File

@ -0,0 +1,6 @@
{
"name": "oxy",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}

View File

@ -462,8 +462,8 @@ Tipos de relacionamento comuns:
MATCH (m:Memory {id: $id})
OPTIONAL MATCH (m)-[r]->(target)
RETURN count(DISTINCT target) as total_connections,
count(DISTINCT r) as total_relationships,
[type(r) IN collect(DISTINCT type(r)) WHERE type(r) IS NOT NULL] as relationship_types
count(DISTINCT r) as total_relationships,
[type(r) IN collect(DISTINCT type(r)) WHERE type(r) IS NOT NULL] as relationship_types
""", id=memory_id)
record = result.single()
@ -483,4 +483,4 @@ Tipos de relacionamento comuns:
"""Fecha conexão Neo4j"""
if cls._driver:
cls._driver.close()
cls._driver = None
cls._driver = None