apoc.text.repeat

Details

Syntax

apoc.text.repeat(item, count)

Description

Returns the result of the given item multiplied by the given count.

Arguments

Name

Type

Description

item

STRING

The string to be repeated.

count

INTEGER

The number of times to repeat the given string.

Returns

STRING

Usage Examples

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

"itemitemitemitemitem"