|
|
|
@ -92,7 +92,7 @@ public class Neo4jServiceImpl implements Neo4jService {
|
|
|
|
|
try {
|
|
|
|
|
Session session = driver.session();
|
|
|
|
|
StringBuilder cql = new StringBuilder();
|
|
|
|
|
cql.append("MATCH (n) where id(n) = ").append(id).append(" DELETE n");
|
|
|
|
|
cql.append("MATCH (n) where id(n) = ").append(id).append(" DETACH DELETE n");
|
|
|
|
|
log.info(cql.toString());
|
|
|
|
|
Result run = session.run(cql.toString());
|
|
|
|
|
while (run.hasNext()) {
|
|
|
|
@ -108,7 +108,7 @@ public class Neo4jServiceImpl implements Neo4jService {
|
|
|
|
|
try {
|
|
|
|
|
Session session = driver.session();
|
|
|
|
|
StringBuilder cql = new StringBuilder();
|
|
|
|
|
cql.append("MATCH (n) WHERE n.id = ").append(id).append(" AND NOT (n)--() DELETE n");
|
|
|
|
|
cql.append("MATCH (n) WHERE id(n) = ").append(id).append(" DETACH DELETE n");
|
|
|
|
|
log.info(cql.toString());
|
|
|
|
|
Result run = session.run(cql.toString());
|
|
|
|
|
while (run.hasNext()) {
|
|
|
|
|