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

Cheat sheet tags for patterns and label expressions #1125

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

JPryce-Aklundh
Copy link
Contributor

@JPryce-Aklundh JPryce-Aklundh marked this pull request as ready for review November 29, 2024 10:02
@JPryce-Aklundh JPryce-Aklundh added cherry-pick-this-to-5.x Cherry pick this PR changes to the 5.x branch cherry-pick-this-to-cypher-25 labels Nov 29, 2024
@@ -157,12 +159,14 @@ If there had been only four possible paths between the two Stations, then only t
To return all paths that are tied for shortest length, use the keywords `ALL SHORTEST`:

.Query
// tag::patterns_shortest_paths_shortest_k[]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// tag::patterns_shortest_paths_shortest_k[]
// tag::patterns_shortest_paths_all_shortest[]

[source,cypher]
----
MATCH p = ALL SHORTEST (wos:Station)-[:LINK]-+(bmv:Station)
WHERE wos.name = "Worcester Shrub Hill" AND bmv.name = "Bromsgrove"
RETURN [n in nodes(p) | n.name] AS stops
----
// end::patterns_shortest_paths_shortest_k[]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// end::patterns_shortest_paths_shortest_k[]
// end::patterns_shortest_paths_all_shortest[]

@neo-technology-commit-status-publisher
Copy link
Collaborator

Thanks for the documentation updates.

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

@JPryce-Aklundh JPryce-Aklundh merged commit 0513358 into neo4j:dev Dec 3, 2024
5 checks passed
@JPryce-Aklundh JPryce-Aklundh deleted the cheat_sheet_patterns branch December 3, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-this-to-5.x Cherry pick this PR changes to the 5.x branch cherry-pick-this-to-cypher-25
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants