We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb51a4 commit adabebdCopy full SHA for adabebd
src/main/java/org/springframework/data/neo4j/repository/query/QueryFragments.java
@@ -170,8 +170,10 @@ public Statement toStatement() {
170
171
StatementBuilder.OngoingReadingWithoutWhere match = Cypher.match(this.matchOn.get(0));
172
173
- for (PatternElement patternElement : this.matchOn) {
174
- match = match.match(patternElement);
+ if (this.matchOn.size() > 1) {
+ for (PatternElement patternElement : this.matchOn.subList(1, this.matchOn.size())) {
175
+ match = match.match(patternElement);
176
+ }
177
}
178
179
StatementBuilder.OngoingReadingWithWhere matchWithWhere = match.where(this.condition);
0 commit comments