apoc.text.camelCase

Details

Syntax

apoc.text.camelCase(text)

Description

Converts the given STRING to camel case.

Arguments

Name

Type

Description

text

STRING

The string to be converted to camel case.

Returns

STRING

Usage Examples

RETURN apoc.text.camelCase("FOO_BAR") AS output;
Results
output

"fooBar"

RETURN apoc.text.camelCase("Foo bar") AS output;
Results
output

"fooBar"

RETURN apoc.text.camelCase("Foo22 bar") AS output;
Results
output

"foo22Bar"

RETURN apoc.text.camelCase("foo-bar") AS output;
Results
output

"fooBar"

RETURN apoc.text.camelCase("Foobar") AS output;
Results
output

"foobar"

RETURN apoc.text.camelCase("Foo$$Bar") AS output;
Results
output

"fooBar"