Skip to content

Commit 7bdd301

Browse files
committed
cypher syntax fix for unit test
1 parent e75bd94 commit 7bdd301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/n10s/mapping/MappingUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public Stream<StringOutput> dropAll(@Name("namespace") String schemaUri) {
105105
public Stream<StringOutput> drop(@Name("graphElementName") String gElem)
106106
throws MappingDefinitionException {
107107
String cypher = "MATCH (mapns)<-[:_IN]-(elem:_MapDef { _key : $local }) DETACH DELETE elem "
108-
+ "RETURN count(elem) AS deletecount, size((mapns)<-[:_IN]-()) AS remaining, mapns ";
108+
+ "RETURN count(elem) AS deletecount, size([(mapns)<-[r:_IN]-() | r ]) AS remaining, mapns ";
109109
Map<String, Object> params = new HashMap<>();
110110
params.put("local", gElem);
111111
Result queryResult = tx.execute(cypher, params);

0 commit comments

Comments
 (0)