apoc.text.repeat

Function

apoc.text.repeat(item STRING, count INTEGER) - returns the result of the given item multiplied by the given count.

Signature

apoc.text.repeat(item :: STRING, count :: INTEGER) :: STRING

Input parameters

Name Type Default

item

STRING

null

count

INTEGER

null

Usage Examples

RETURN apoc.text.repeat('item', 5) AS output;
Table 1. Results
output

"itemitemitemitemitem"