From 81f3b50200afbf88a6ff7f493bf6e21eab0fbc19 Mon Sep 17 00:00:00 2001 From: lanceyq <1982376970@qq.com> Date: Fri, 20 Mar 2026 20:45:29 +0800 Subject: [PATCH] Ensure stability --- api/app/repositories/neo4j/cypher_queries.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/app/repositories/neo4j/cypher_queries.py b/api/app/repositories/neo4j/cypher_queries.py index a4da87d7..5b2e5f1e 100644 --- a/api/app/repositories/neo4j/cypher_queries.py +++ b/api/app/repositories/neo4j/cypher_queries.py @@ -1146,7 +1146,8 @@ GET_COMMUNITY_RELATIONSHIPS = """ MATCH (e1:ExtractedEntity {end_user_id: $end_user_id})-[:BELONGS_TO_COMMUNITY]->(c:Community {community_id: $community_id}) MATCH (e2:ExtractedEntity {end_user_id: $end_user_id})-[:BELONGS_TO_COMMUNITY]->(c) MATCH (e1)-[r:EXTRACTED_RELATIONSHIP]->(e2) -RETURN e1.name AS subject, r.predicate AS predicate, e2.name AS object, r.statement AS statement +RETURN e1.name AS subject, r.predicate AS predicate, e2.name AS object +ORDER BY e1.name, r.predicate, e2.name LIMIT 20 """