Skip to content

Commit

Permalink
cypher syntax fix for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrasa committed Oct 29, 2022
1 parent e75bd94 commit 7bdd301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/n10s/mapping/MappingUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public Stream<StringOutput> dropAll(@Name("namespace") String schemaUri) {
public Stream<StringOutput> drop(@Name("graphElementName") String gElem)
throws MappingDefinitionException {
String cypher = "MATCH (mapns)<-[:_IN]-(elem:_MapDef { _key : $local }) DETACH DELETE elem "
+ "RETURN count(elem) AS deletecount, size((mapns)<-[:_IN]-()) AS remaining, mapns ";
+ "RETURN count(elem) AS deletecount, size([(mapns)<-[r:_IN]-() | r ]) AS remaining, mapns ";
Map<String, Object> params = new HashMap<>();
params.put("local", gElem);
Result queryResult = tx.execute(cypher, params);
Expand Down

0 comments on commit 7bdd301

Please sign in to comment.