> ## Documentation Index
> Fetch the complete documentation index at: https://new.docs.falkordb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# text.camelCase

> Converts a string to camelCase format, capitalizing the first letter of each word except the first.

## Description

Converts a string to camelCase format by removing non-alphanumeric characters and capitalizing the first letter of each word except the first.

## Syntax

```cypher theme={null}
flex.text.camelCase(string)
```

## Parameters

| Parameter | Type   | Required | Description                        |
| --------- | ------ | -------- | ---------------------------------- |
| `string`  | string | Yes      | The string to convert to camelCase |

## Returns

**Type:** string

The input string converted to camelCase format. Returns `null` if input is `null`.

## Examples

### Example 1: Basic Usage

```cypher theme={null}
RETURN flex.text.camelCase('hello world') AS result
```

**Output:**

```text theme={null}
result
----------
helloWorld
```

### Example 2: Converting Field Names

```cypher theme={null}
RETURN flex.text.camelCase('user_first_name') AS result
```

**Output:**

```text theme={null}
result
-------------
userFirstName
```

### Example 3: Normalizing Property Names

```cypher theme={null}
WITH ['first-name', 'last_name', 'Email Address'] AS fields
UNWIND fields AS field
RETURN field AS original, flex.text.camelCase(field) AS camelCase
```

## Notes

* Returns `null` for `null` input
* Removes all non-alphanumeric characters
* First character is always lowercase
* Subsequent words start with uppercase
* Useful for normalizing field names to JavaScript/JSON conventions

## See Also

* [text.upperCamelCase](/udfs/flex/text/upperCamelCase) - Convert to UpperCamelCase (PascalCase)
* [text.snakeCase](/udfs/flex/text/snakeCase) - Convert to snake\_case format
* [text.capitalize](/udfs/flex/text/capitalize) - Capitalize first character only

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="What separators does flex.text.camelCase recognize?">
    It recognizes spaces, hyphens, underscores, and transitions between lowercase and uppercase characters as word boundaries.
  </Accordion>

  <Accordion title="How is camelCase different from upperCamelCase?">
    In `camelCase` the first letter is lowercase (e.g., `helloWorld`), while `upperCamelCase` (PascalCase) capitalizes the first letter too (e.g., `HelloWorld`).
  </Accordion>
</AccordionGroup>
