apoc.text.toUpperCase

Function APOC Core

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

Signature

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

Input parameters

Name Type Default

text

STRING?

null

Usage Examples

RETURN apoc.text.toUpperCase("test upper case") AS output;
Table 1. Results
output

"TEST_UPPER_CASE"

RETURN apoc.text.toUpperCase("FooBar") AS output;
Table 2. Results
output

"FOO_BAR"

RETURN apoc.text.toUpperCase("fooBar") AS output;
Table 3. Results
output

"FOO_BAR"

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

"FOO_BAR"

RETURN apoc.text.toUpperCase("foo--bar") AS output;
Table 5. Results
output

"FOO_BAR"

RETURN apoc.text.toUpperCase("foo$$bar") AS output;
Table 6. Results
output

"FOO_BAR"

RETURN apoc.text.toUpperCase("foo 22 bar") AS output;
Table 7. Results
output

"FOO_22_BAR"