values

Returns an array of the values of the given object

Arguments

  • object - The object to get the values from

Example

Given scope

{
  "testObject": {
    "test1": "someVal",
    "test2": "anotherVal"
  }
}

for query

{
  "$template": {
    "test": "{{values(testObject)}}"
  }
}

the result will be

[
  "someVal",
  "anotherVal"
]