apoc.coll.fill

Function

apoc.coll.fill(items STRING, count INTEGER) - returns a LIST<ANY> with the given count of items.

Signature

apoc.coll.fill(item :: STRING, count :: INTEGER) :: LIST<ANY>

Input parameters

Name Type Default

item

STRING

null

count

INTEGER

null

Usage examples

The following returns a list containing 2 lists with the contents abc:

RETURN apoc.coll.fill('abc', 2) as output;
Table 1. Results
Output

["abc", "abc"]