Skip to main content

$values

The $values operator returns an array of all values in an object/map.

Input

  • A single object/map value

Output

  • An array containing all the values of the input object

Examples

Get Values from Object

{
  "$values": [
    {
      "name": "Alice",
      "age": 25,
      "city": "New York"
    }
  ]
}
Result: ["Alice", 25, "New York"]

From Field

{
  "$values": [
    {
      "$input": "user_object"
    }
  ]
}
Result: An array of all values from the user_object field