neo4j / sdn-rx

Nextgen Spring Data module for Neo4j supporting (not only) reactive data access and immutable support
https://neo4j.github.io/sdn-rx
Apache License 2.0
65 stars 23 forks source link

[Cypher-DSL] cant use alias for property projection #245

Closed Andy2003 closed 4 years ago

Andy2003 commented 4 years ago

Description

Given

Statement statement;
Node n = Cypher.node("Person").named("p");

statement = Cypher.match(n)
    .returning(
        n.project("alias", n.property("name"))
    )
    .build();

Current behavior:

MATCH (p:`Person`) RETURN p{alias: .name}

Expected behavior:

MATCH (p:`Person`) RETURN p{alias: p.name}
michael-simons commented 4 years ago

Thanks Andreas, nice catch!