Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/content/docs/cypher/expressions/list-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Scroll to the right to see the example usage in the below table.
| `list_has(list, element)` | alias of `list_contains` | `list_has([3,4,5], 5)` | `true` |
| `array_contains(list, element)` | alias of `list_contains` | `array_contains([3,4,5], 5)` | `true` |
| `array_has(list, element)` | alias of `list_contains` | `array_has([3,4,5], 5)` | `true` |
| `list_slice(list, begin, end)` | extracts a sub-list using slice conventions and negative values are accepted. | `list_slice([3,4,5], 2, 3)` | `[4]` |
| `array_slice(list, begin, end)` | alias of `list_slice` | `array_slice([6,7,1], 1, 3)` | `[6,7]` |
| `list_slice(list, begin, end)` | extracts a sub-list using slice conventions and negative values are accepted. | `list_slice([3,4,5], 2, 3)` | `[4,5]` |
| `array_slice(list, begin, end)` | alias of `list_slice` | `array_slice([6,7,1], 1, 3)` | `[6,7,1]` |
| `list_reverse(list)` | reverse list elements | `list_reverse([1,2,3])` | `[3,2,1]` |
| `list_sort(list)`| sorts the elements of the list. More configurations available [here](#list_sort) | `list_sort([3,10,4])` | `[3,4,10]` |
| `list_reverse_sort(list)` | alias of `list_sort(list, 'DESC')` | `list_reverse_sort([3,10,4])` | `[10,4,3]` |
Expand All @@ -46,7 +46,7 @@ Scroll to the right to see the example usage in the below table.
| `list_distinct(list)` | removes NULLs and duplicate values from the list. | `list_distinct([3,3,3,NULL])` | `[3]` |
| `list_unique(list)` | counts number of unique elements of the list. NULLs are ignored. | `list_unique([3,3,3,NULL])` | `1` |
| `list_any_value(list)` | returns the first non-NULL value of the list | `list_any_value(NULL, 'a', NULL)` | `'a'` |
| `list_to_string(list, separator)` | converts a list to a string separated by the given separator | `list_to_string([1,2,3], '..' )` | `'1..2..3'` |
| `list_to_string(separator, list)` | converts a list to a string separated by the given separator | `list_to_string('..', [1,2,3])` | `'1..2..3'` |
| `range(start, stop)` | returns a list of values from `start` to `stop`. Specify the step as shown [here](#range) | `range(1,3)` | `[1,2,3]` |
| `list_transform(list, lambda)` | returns a list by applying lambda function to each element of input list | `list_transform([1,2,3], x->x+1)` | [2,3,4] |
| `list_filter(list, lambda)` | returns list containing elements whose lambda function result is true | `list_filter([1,2,3], x->x>1)` | [2,3] |
Expand Down
1 change: 1 addition & 0 deletions src/content/docs/cypher/expressions/text-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ Scroll the table to the right to see example usage.
| `initcap(string)` | returns the string with only the first letter in uppercase | `initcap("roma")` | `"Roma"` |
| `string_split(string, separator)` | splits the string along the separator. | `string_split('this is a sentence', ' ')` | `[this,is,a,sentence]` |
| `split_part(string, separator, index)` | Split the string along the separator and return the data at the (1-based) index of the list. Returns empty string if index out of range | `split_part('this is a sentence', ' ', 1)` | `this` |
| `ws_concat(separator, string)` | concatenating all string inputs with separator | `CONCAT_WS(',', '1', '3', '5', '7')` | `1,3,5,7` |
</div>