Skip to content

Conversation

@rsill-neo4j
Copy link
Contributor

No description provided.

Copy link
Contributor

@JoelBergstrand JoelBergstrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work Richard! I added som thought and edits, some which we talked about during the meeting, some that I came up with now.

====


== Interactions with conditional queries
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really like this example!

Comment on lines 311 to 312
[[next-and-union]]
.`NEXT` in a query using `UNION`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this example is fine and easy to reason about, maybe not the most exciting creation ever but it does the job.

@JoelBergstrand JoelBergstrand self-assigned this May 12, 2025
Co-authored-by: JoelBergstrand <joel.bergstrand@neo4j.com>
Copy link
Collaborator

@JPryce-Aklundh JPryce-Aklundh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! A few editorial suggestions from me :)

Also, please add NEXT to the keywords page in this PR

Even though the `NEXT` query in <<call-subquery-rewrite>> has more lines, it is divided into three segments which are easy to read.
It also avoids the parentheses and indentation of the `CALL` subquery.

Variables which are local to a query and which are not explicitly returned are not accessible by subsequent queries in the context of `NEXT`. This allows you to control variable scope similarly to what you can do with `WITH`, see xref:clauses/with.adoc#variable-scope[Control variables in scope].
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved

rsill-neo4j and others added 2 commits May 16, 2025 11:19
Co-authored-by: Jens Pryce-Åklundh <112686610+JPryce-Aklundh@users.noreply.github.com>
@neo4j-docops-agent
Copy link
Collaborator

neo4j-docops-agent commented Jun 5, 2025

Thanks for the documentation updates.

The preview documentation has now been torn down - reopening this PR will republish it.

@rsill-neo4j rsill-neo4j merged commit d667067 into cypher-25 Jun 9, 2025
4 checks passed
neo-technology-build-agent pushed a commit to neo4j/neo4j that referenced this pull request Jul 2, 2025
Introduces  `NEXT` to Cypher which allows chaining of queries. 
```
Query1

NEXT

Query2
```

[CIP 213 - NEXT
statements](https://docs.google.com/document/d/1Qwi2g_yvUh9LRk4zvlRh3AH4GTzTqK2mLP2IYA5ftVI/edit?pli=1&tab=t.0#heading=h.kdb4jt9vcp34)
[Docs PR](neo4j/docs-cypher#1273)
@stefano-ottolenghi stefano-ottolenghi deleted the document-NEXT branch July 7, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants