public ICypherQuery Execute(ICypherQuery query) { query .With(StatementFactory.With(_source)) .Match(StatementFactory.Match(_destination, StatementFactory.IdParameter(_destination))) .CreateUnique(StatementFactory.Relationship(_source, _destination, _relationship)) .WithParam(StatementFactory.IdParameter(_destination), _destination.Id); return(query); }
public ICypherQuery Execute(ICypherQuery query) { query = query .With(StatementFactory.With(_source)) .Match(StatementFactory.Match(_destination, StatementFactory.IdParameter(_destination))) .Match(StatementFactory.Relationship(_source, _destination, _relationship, _relationshipName)) .WithParam(StatementFactory.IdParameter(_destination), _destination.Id) .Delete(GetNodesToDelete()); return(query); }