apoc.coll.fillObject
Function Apoc Extended
apoc.coll.fillObject(item, size) - returns a list of equals items with the given size
Usage Examples
RETURN apoc.coll.fillObject() as value
value |
---|
[] |
RETURN apoc.coll.fillObject('abc',2) as value
value |
---|
['abc', 'abc'] |
RETURN apoc.coll.fillObject(5,3) as value
value |
---|
[5, 5, 5] |
WITH [1,2,3] AS item RETURN apoc.coll.fillObject(item, 3) as value
value |
---|
[[1,2,3], [1,2,3], [1,2,3]] |
CREATE (node:Node {a: 1}) RETURN apoc.coll.fillObject(node, 2) as value
value |
---|
[ |