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

> ## Agent Instructions
> FalkorDB is a graph database that speaks the Redis protocol. Queries are issued as OpenCypher through the GRAPH.QUERY and GRAPH.RO_QUERY commands, not over Bolt or a SQL connection.
> FalkorDB implements a subset of OpenCypher with proprietary extensions. Do not assume Neo4j-only syntax or procedures are available — check /cypher/cypher-support and /cypher/known-limitations before using a clause.
> FalkorDB is the successor to RedisGraph, but they are separate products. Do not present RedisGraph commands, versions, or limitations as current FalkorDB behavior.
> Use the official clients listed in /getting-started/clients rather than generic Redis or Neo4j drivers, and prefer the language the user is already working in.
> Configuration parameters are set with GRAPH.CONFIG SET or at startup; cite the exact parameter name from /getting-started/configuration rather than inventing one.
> This site covers four products: FalkorDB (core), FalkorDB Cloud, FalkorDB Enterprise, and the GraphRAG SDK. Name which one an answer applies to, since setup and operations differ.

# text.decapitalize

> Converts the first character of a string to lowercase, leaving the remainder unchanged.

## Description

Converts the first character of a string to lowercase while leaving the rest of the string unchanged.

## Syntax

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

## Parameters

| Parameter | Type   | Required | Description                |
| --------- | ------ | -------- | -------------------------- |
| `string`  | string | Yes      | The string to decapitalize |

## Returns

**Type:** string

The input string with its first character converted to lowercase. Returns `null` if the input is `null`, and empty string if input is empty.

## Examples

### Example 1: Basic Usage

```cypher theme={null}
RETURN flex.text.decapitalize('Hello World') AS result
```

**Output:**

```text theme={null}
result
-------------
hello World
```

### Example 2: Processing Field Names

```cypher theme={null}
WITH ['FirstName', 'LastName', 'Email'] AS fields
UNWIND fields AS field
RETURN flex.text.decapitalize(field) AS jsonKey
```

## Notes

* Returns `null` for `null` input
* Returns empty string for empty string input
* Only affects the first character
* Does not change the case of subsequent characters

## See Also

* [text.capitalize](/udfs/flex/text/capitalize) - Uppercase the first character
* [text.camelCase](/udfs/flex/text/camelCase) - Convert to camelCase format

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="What does flex.text.decapitalize do?">
    It converts only the **first** character of a string to lowercase, leaving all other characters unchanged.
  </Accordion>

  <Accordion title="When would I use decapitalize?">
    It is useful for converting PascalCase identifiers to camelCase-style keys, e.g., turning `'FirstName'` into `'firstName'`.
  </Accordion>
</AccordionGroup>
