| layout | title | parent | grand_parent |
|---|---|---|---|
default |
text.camelCase |
Text Functions |
FLEX Function Reference |
Converts a string to camelCase format by removing non-alphanumeric characters and capitalizing the first letter of each word except the first.
flex.text.camelCase(string)| Parameter | Type | Required | Description |
|---|---|---|---|
string |
string | Yes | The string to convert to camelCase |
Type: string
The input string converted to camelCase format. Returns null if input is null.
RETURN flex.text.camelCase('hello world') AS resultOutput:
result
----------
helloWorld
RETURN flex.text.camelCase('user_first_name') AS resultOutput:
result
-------------
userFirstName
WITH ['first-name', 'last_name', 'Email Address'] AS fields
UNWIND fields AS field
RETURN field AS original, flex.text.camelCase(field) AS camelCase- Returns
nullfornullinput - Removes all non-alphanumeric characters
- First character is always lowercase
- Subsequent words start with uppercase
- Useful for normalizing field names to JavaScript/JSON conventions
- text.upperCamelCase - Convert to UpperCamelCase (PascalCase)
- text.snakeCase - Convert to snake_case format
- text.capitalize - Capitalize first character only