diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..4a62e02 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "oxy", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/src/memory/graph_wrapper.py b/src/memory/graph_wrapper.py index dedce93..7bfa251 100644 --- a/src/memory/graph_wrapper.py +++ b/src/memory/graph_wrapper.py @@ -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 \ No newline at end of file + cls._driver = None