We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e75bd94 commit 7bdd301Copy full SHA for 7bdd301
src/main/java/n10s/mapping/MappingUtils.java
@@ -105,7 +105,7 @@ public Stream<StringOutput> dropAll(@Name("namespace") String schemaUri) {
105
public Stream<StringOutput> drop(@Name("graphElementName") String gElem)
106
throws MappingDefinitionException {
107
String cypher = "MATCH (mapns)<-[:_IN]-(elem:_MapDef { _key : $local }) DETACH DELETE elem "
108
- + "RETURN count(elem) AS deletecount, size((mapns)<-[:_IN]-()) AS remaining, mapns ";
+ + "RETURN count(elem) AS deletecount, size([(mapns)<-[r:_IN]-() | r ]) AS remaining, mapns ";
109
Map<String, Object> params = new HashMap<>();
110
params.put("local", gElem);
111
Result queryResult = tx.execute(cypher, params);
0 commit comments