apoc.text.camelCase

Function APOC Core

apoc.text.camelCase(text) YIELD value - Convert a string to camelCase

Signature

apoc.text.camelCase(text :: STRING?) :: (STRING?)

Input parameters

Name Type Default

text

STRING?

null

Usage Examples

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

"fooBar"

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

"fooBar"

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

"foo22Bar"

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

"fooBar"

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

"foobar"

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

"fooBar"