|
@@ -58,7 +58,7 @@ def standard_list(skip_count, page_size, en_name_filter=None,
|
|
|
MATCH (n:data_standard)
|
|
|
WHERE {where_str}
|
|
|
RETURN properties(n) as properties,n.time as time,id(n) as nodeid,
|
|
|
- COUNT{{()-[]->(n)}} + COUNT{{(n)-[]->()}} as relationship_count
|
|
|
+ COUNT((()-[]->(n))) + COUNT(((n)-[]->())) as relationship_count
|
|
|
ORDER BY time desc
|
|
|
SKIP $skip_count
|
|
|
LIMIT $page_size
|
|
@@ -283,8 +283,8 @@ def label_list(skip_count, page_size, en_name_filter=None,
|
|
|
cql = f"""
|
|
|
MATCH (n:data_label)
|
|
|
WHERE {where_str}
|
|
|
- RETURN properties(n) as properties,n.time as time,id(n) as nodeid,
|
|
|
- COUNT{{()-[]->(n)}} + COUNT{{(n)-[]->()}} as relationship_count
|
|
|
+ RETURN properties(n) as properties,n.time as time,elementId(n) as nodeid,
|
|
|
+ COUNT((()-[]->(n))) + COUNT(((n)-[]->())) as relationship_count
|
|
|
ORDER BY time desc
|
|
|
SKIP $skip_count
|
|
|
LIMIT $page_size
|