Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OngoingReading is not immutable #907

Open
Andy2003 opened this issue Jan 23, 2024 · 3 comments
Open

OngoingReading is not immutable #907

Andy2003 opened this issue Jan 23, 2024 · 3 comments
Assignees

Comments

@Andy2003
Copy link
Contributor

Andy2003 commented Jan 23, 2024

The Following code fails, b/c the match is not immutable:

var node = Cypher.anyNode().named("foo");
var match = Cypher.match(node);

var property = node.property("foo");
// this is another statement we defer from the match 
var otherStatement = match.with(node)
	.returning(property)
	.build();

var cypher = match
	.returning(Cypher.asterisk())
	.build().getCypher();

assertThat(cypher).isEqualTo("MATCH (foo) RETURN *");

I get an assertion error:

expected: "MATCH (foo) RETURN *"
 but was: "MATCH (foo) WITH foo RETURN *"
@michael-simons
Copy link
Collaborator

That will gonna take some time…

@michael-simons michael-simons self-assigned this Jan 23, 2024
@Andy2003
Copy link
Contributor Author

Any update on this?

@michael-simons
Copy link
Collaborator

Not as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants