Skip to content

Commit 736221c

Browse files
mattkjames7matea16
andauthored
Tofloatlist (#1525)
* added new functions * resolve deployment issue --------- Co-authored-by: matea16 <mateapesic@hotmail.com> Co-authored-by: Matea Pesic <80577904+matea16@users.noreply.github.com>
1 parent 7408598 commit 736221c

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

pages/querying/functions.mdx

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,25 @@ This section contains the list of supported functions.
7777

7878
### Lists
7979

80-
| Name | Signature | Description |
81-
| --------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
82-
| `all` | `all(variable IN list WHERE predicate)` | Check if all elements of a list satisfy a predicate. <br/> NOTE: Whenever possible, use Memgraph's lambda functions when matching instead. |
83-
| `any` | `any(element IN list WHERE predicate_using_element)` | Check if any element in the list satisfies the predicate. |
84-
| `extract` | `extract(variable IN list\|expression)` | A list of values obtained by evaluating an expression for each element in list. |
85-
| `labels` | `labels(node: Node) -> (List[string])` | Returns a list of labels from a node. Each label is represented as string. |
86-
| `nodes` | `nodes(path: Path) -> (List[Node])` | Returns a list of nodes from a path. |
87-
| `none` | `none(variable IN list WHERE predicate)` | Returns `true` if the predicate is not satisfied for any element in the given list. |
88-
| `range` | `range(start-number: integer, end-number: integer, increment: integer = 1) -> (List[integer])` | Constructs a list of value in given range. |
89-
| `reduce` | `reduce(accumulator = initial_value, variable IN list\|expression)` | Accumulate list elements into a single result by applying an expression. |
90-
| `relationships` | `relationships(path: Path) -> (List[Relationship])` | Returns a list of relationships (edges) from a path. |
91-
| `single` | `single(variable IN list WHERE predicate)` | Check if only one element of a list satisfies a predicate. |
92-
| `tail` | `tail(list: List[any]) -> (List[any])` | Returns all elements after the first of a given list. |
93-
| `toSet` | `toSet(list: List[any]) -> (List[any])` | Returns the list of distinct elements from the initial list. |
94-
| `uniformSample` | `uniformSample(list: List[any], size: integer) -> (List[any])` | Returns elements of a given list randomly oversampled or undersampled to desired size |
80+
| Name | Signature | Description |
81+
| --------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
82+
| `all` | `all(variable IN list WHERE predicate)` | Check if all elements of a list satisfy a predicate. <br/> NOTE: Whenever possible, use Memgraph's lambda functions when matching instead. |
83+
| `any` | `any(element IN list WHERE predicate_using_element)` | Check if any element in the list satisfies a predicate. |
84+
| `extract` | `extract(variable IN list\|expression)` | A list of values obtained by evaluating an expression for each element in list. |
85+
| `labels` | `labels(node: Node) -> (List[string])` | Returns a list of labels from a node. Each label is represented as string. |
86+
| `nodes` | `nodes(path: Path) -> (List[Node])` | Returns a list of nodes from a path. |
87+
| `none` | `none(variable IN list WHERE predicate)` | Returns `true` if the predicate is not satisfied for any element in the given list. |
88+
| `range` | `range(start-number: integer, end-number: integer, increment: integer = 1) -> (List[integer])` | Constructs a list of value in given range. |
89+
| `reduce` | `reduce(accumulator = initial_value, variable IN list\|expression)` | Accumulate list elements into a single result by applying an expression. |
90+
| `relationships` | `relationships(path: Path) -> (List[Relationship])` | Returns a list of relationships (edges) from a path. |
91+
| `single` | `single(variable IN list WHERE predicate)` | Check if only one element of a list satisfies a predicate. |
92+
| `tail` | `tail(list: List[any]) -> (List[any])` | Returns all elements after the first of a given list. |
93+
| `toBooleanList` | `toBooleanList(list: List[any]) -> (List[boolean])` | Converts the list of values to a list of booleans. |
94+
| `toFloatList` | `toFloatList(list: List[any]) -> (List[float])` | Converts the list of values to a list of floats. |
95+
| `toIntegerList` | `toIntegerList(list: List[any]) -> (List[integer])` | Converts the list of values to a list of integers. |
96+
| `toSet` | `toSet(list: List[any]) -> (List[any])` | Returns the list of distinct elements from the initial list. |
97+
| `uniformSample` | `uniformSample(list: List[any], size: integer) -> (List[any])` | Returns elements of a given list randomly oversampled or undersampled to desired size |
98+
9599

96100
### Maps
97101

0 commit comments

Comments
 (0)