apoc.text.lpad

Function

apoc.text.lpad(text STRING, count INTEGER, delimiter STRING) - left pads the given STRING by the given width.

Signature

apoc.text.lpad(text :: STRING, count :: INTEGER, delim =   :: STRING) :: STRING

Input parameters

Name Type Default

text

STRING

null

count

INTEGER

null

delim

STRING

Usage Examples

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

"---Neo4j"