Skip to content

Conversation

@JPryce-Aklundh
Copy link
Collaborator

Also updates WHERE and UNION (both of which were changed significantly by Expressions project)

@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 Apr 25, 2025
By pre-pending a regular expression with the flag `(?i)`, the whole expression becomes case-insensitive:
.Case-insensitive regular expression `(?i)`
.Case-insensitive regular expression `(?i)`
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the change here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed accidental whitespace

@neo4j-docops-agent
Copy link
Collaborator

neo4j-docops-agent commented Apr 25, 2025

Thanks for the documentation updates.

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

The xref:functions/list.adoc#functions-reduce[`reduce()`] function concatenates these skills into a single `LIST`, and xref:clauses/unwind.adoc[`UNWIND`] is used to flatten this `LIST` before returning the distinct skills in a new `LIST`.

.Allowed: variable-length pattern comprehension using variable-length relationship syntax
// tag::expressions_list_pattern_comprehension_var_length[]
Copy link
Contributor

Choose a reason for hiding this comment

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

this one and contains lines that are so long that they don't render nicely in the cheat sheet 🤔
it's a minor thing (formatting)

This ensures that all `NULL` values are effectively skipped, allowing the `reduce()` function to concatenate the remaining `STRING` values.

.Using `reduce()` and `coalesce()` to skip `NULL` values when concatenating a `LIST`
// tag::expressions_string_concatenation_concatenate_skip_null[]
Copy link
Contributor

@rsill-neo4j rsill-neo4j Apr 25, 2025

Choose a reason for hiding this comment

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

same here, doesn't format too nicely in the cheat sheet

edit: ok there are a couple more occurrences, won't list them all :)

@JPryce-Aklundh JPryce-Aklundh merged commit a69cc0d into neo4j:dev Apr 25, 2025
5 checks passed
@JPryce-Aklundh JPryce-Aklundh deleted the expression_tags branch April 25, 2025 13:17
JPryce-Aklundh added a commit to JPryce-Aklundh/docs-cypher that referenced this pull request Apr 25, 2025
Also updates WHERE and UNION (both of which were changed significantly
by Expressions project)

---------

Co-authored-by: Richard Sill <156673635+rsill-neo4j@users.noreply.github.com>
JPryce-Aklundh added a commit to JPryce-Aklundh/docs-cypher that referenced this pull request Apr 25, 2025
Also updates WHERE and UNION (both of which were changed significantly
by Expressions project)

---------

Co-authored-by: Richard Sill <156673635+rsill-neo4j@users.noreply.github.com>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants