Cypher toUpper Function

toUpper() returns the original string in uppercase.

Syntax: toUpper(original)

Returns: A String.

Arguments

NameDescription
originalAn expression that returns a string.

Example

RETURN toUpper("hello, world!")

The value returned will be a string that will be similar to the original string “HELLO, WORLD!”, except that all lower case alphabets will be replaced by their upper case equivalents. Hence the returned string will be “HELLO, WORLD!”.

Considerations

  • toUpper(null) returns null.

Example

RETURN toUpper("cypher tutorials!")

Returns the following Result

toUpper("cypher tutorials!")
"CYPHER TUTORIALS!"

Example

RETURN toUpper("Cypher Tutorials!")

Returns the following Result

toUpper("Cypher Tutorials!")
"CYPHER TUTORIALS!"

Example

RETURN toUpper("CYPHER TUTORIALS!")

Returns the following Result

toUpper("CYPHER TUTORIALS!")
"CYPHER TUTORIALS!"

Example

RETURN toUpper(null)

Returns the following Result

toUpper(null)
null

NotetoUpper(null) returns null.

Learn More