Skip to content

Commit 4e77176

Browse files
Add length function docs (#1141)
* Add length function docs * Format --------- Co-authored-by: Katarina Supe <[email protected]>
1 parent bdaa77e commit 4e77176

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/querying/functions.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ This section contains the list of supported functions.
4747
| `head` | `head(list: List[any]) -> (any)` | Returns the first element of a list. |
4848
| `id` | `id(value: Node\|Relationship) -> (integer)` | Returns identifier for a given node or relationship. The identifier is generated during the initialization of a node or a relationship and will be persisted through the durability mechanism. |
4949
| `last` | `last(list: List[any]) -> (any)` | Returns the last element of a list. |
50+
| `length` | `length(value: List\|string\|Map\|Path) -> (integer)` | Returns the number of elements in the value. When given a **list** it returns the size of the list. When given a string it returns the number of characters. When given a path it returns the number of expansions (relationships) in that path. |
5051
| `properties` | `properties(value: Node\|Relationship) -> (Map[string, any])` | Returns the property map of a node or a relationship. |
5152
| `propertySize` | `propertySize(entity: Node\|Relationship, property-name: string) -> (integer)` | Returns the total amount of bytes stored in RAM for the property of a given entity node or relationship. For more information, check [storage of properties inside Memgraph](/fundamentals/storage-memory-usage#calculate-storage-memory-usage). |
5253
| `randomUUID` | `randomUUID() -> (string)` | Returns randomly-generated Universally Unique Identifier (UUID) |
53-
| `size` | `size(value: List[any]\|string\|Map[string, any]\|Path) -> (integer)` | Returns the number of elements in the value. When given a **list** it returns the size of the list. When given a string it returns the number of characters. When given a path it returns the number of expansions (relationships) in that path. |
54+
| `size` | `size(value: List\|string\|Map\|Path) -> (integer)` | Returns the number of elements in the value. When given a **list** it returns the size of the list. When given a string it returns the number of characters. When given a path it returns the number of expansions (relationships) in that path. |
5455
| `startNode` | `startNode(relationship: Relationship) -> (Node)` | Returns the starting node of a relationship. |
5556
| `toBoolean` | `toBoolean(value: boolean\|integer\|string) -> (boolean)` | Converts the input argument to a boolean value, regardless of case sensitivity. The values `true` and `false` are directly converted to `true` or `false`, respectively. Additionally, the strings "true" and "t" are mapped to `true`, while the strings "false" and "f" are mapped to `false`. |
5657
| `toFloat` | `toFloat(value: number\|string) -> (float)` | Converts the argument to a floating point number. |

0 commit comments

Comments
 (0)