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"