Skip to content

$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. Default 5.

Example

{ "countries": { "$array": {"of": "$country"}, "number": 3 } }
{ "countries": ["Czech Republic", "Ireland", "Argentina"] }