apoc.text.lpad

Details

Syntax

apoc.text.lpad(text, count [, delimiter ])

Description

Left pads the given STRING by the given width.

Arguments

Name

Type

Description

text

STRING

The string to be padded.

count

INTEGER

The number of delimiters to pad the given string with.

delimiter

STRING

The delimiter to pad the given string with. The default is: ``.

Returns

STRING

Usage Examples

RETURN apoc.text.lpad("Neo4j", 8, "-") AS output;
Results
output

"---Neo4j"