-
Notifications
You must be signed in to change notification settings - Fork 64
NEXT documentation #1273
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
NEXT documentation #1273
Conversation
JoelBergstrand
left a comment
There was a problem hiding this 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.
modules/ROOT/pages/appendix/gql-conformance/supported-optional.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/appendix/gql-conformance/supported-optional.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
| ==== | ||
|
|
||
|
|
||
| == Interactions with conditional queries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really like this example!
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
| [[next-and-union]] | ||
| .`NEXT` in a query using `UNION` |
There was a problem hiding this comment.
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.
Co-authored-by: JoelBergstrand <joel.bergstrand@neo4j.com>
JPryce-Aklundh
left a comment
There was a problem hiding this 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
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
| 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]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Outdated
Show resolved
Hide resolved
Co-authored-by: Jens Pryce-Åklundh <112686610+JPryce-Aklundh@users.noreply.github.com>
… with a different one that uses the example data set
|
Thanks for the documentation updates. The preview documentation has now been torn down - reopening this PR will republish it. |
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)
No description provided.