Get All Values¶
Description¶
This operation retrieves all values from a map.
Method¶
Backendless.Hive(hiveName).MapStore(keyName).values();
where:
Argument | Description |
---|---|
hiveName |
Name of a hive where the operation is performed. String value. |
keyName |
Key name identifying a map. String value. |
Return value¶
An array consisting of the map's values. Each individual value can be of any data type. If the specified map does not contain any key-value pairs, then an empty array is returned.
Example¶
The example below returns all values from the "employeeNames"
map.
Backendless.Hive("company").MapStore("employeeNames").values();
where:
Argument | Description |
---|---|
"company" |
Name of a hive where the operation is performed. |
"employeeNames" |
Key name identifying a map. |
Response Example
[
"John Armstrong",
"Rebecca Mobley",
"Nick Bush"
]
Codeless Reference¶
where:
Argument | Description |
---|---|
hive name |
Name of a hive where the operation is performed. |
key name |
Key name identifying a map. |
Returns a list consisting of the map's values.
Consider the following Map storage:
The example below gets all values from the "employeeNames"
map:
The logic produces the following output: