Skip to content

Commit 2193c7a

Browse files
Update example to use Expression instead of SymbolicName.
Required by a minor incompatible change in the Cypher-DSL.
1 parent 2100234 commit 2193c7a

File tree

1 file changed

+2
-2
lines changed
  • src/test/java/org/springframework/data/neo4j/documentation/repositories/custom_queries

1 file changed

+2
-2
lines changed

src/test/java/org/springframework/data/neo4j/documentation/repositories/custom_queries/MovieRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131

3232
// tag::domain-results-impl[]
3333
import org.neo4j.cypherdsl.core.Cypher;
34+
import org.neo4j.cypherdsl.core.Expression;
3435
import org.neo4j.cypherdsl.core.Functions;
3536
import org.neo4j.cypherdsl.core.NamedPath;
3637
import org.neo4j.cypherdsl.core.Node;
3738
import org.neo4j.cypherdsl.core.Statement;
38-
import org.neo4j.cypherdsl.core.SymbolicName;
3939

4040
// end::domain-results-impl[]
4141

@@ -90,7 +90,7 @@ public List<MovieEntity> findMoviesAlongShortestPath(PersonEntity from, PersonEn
9090
NamedPath shortestPath = shortestPath("p").definedBy(
9191
p1.relationshipBetween(p2).unbounded()
9292
);
93-
SymbolicName p = shortestPath.getRequiredSymbolicName();
93+
Expression p = shortestPath.getRequiredSymbolicName();
9494
Statement statement = Cypher.match(shortestPath)
9595
.with(p, listWith(name("n"))
9696
.in(Functions.nodes(shortestPath))

0 commit comments

Comments
 (0)