$Array¶
Creates an array of values. Each element is evaluated separately.
Options¶
of
(required) Defines an element of the array.number
(optional) Number of elements. Default5
.
Example¶
{ "countries": { "$array": {"of": "$country"}, "number": 3 } }
{ "countries": ["Czech Republic", "Ireland", "Argentina"] }