Get All Values¶
Description¶
This operation retrieves all values from a map.
Method¶
GET
Endpoint URL¶
Important
Make sure to replace xxxx in the domain name in the request specification below to the one assigned to your application.
https://xxxx.backendless.app/api/hive/[hive-name]/map/values
where:
Argument | Description |
---|---|
[hive-name] |
Name of a hive where the operation is performed. |
Request Headers¶
None.
Request Body¶
None.
Response Body¶
A JSON array consisting of the map's values. Each individual value is of a JSON 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.
curl --location --request GET "https://xxxx.backendless.app/api/hive/company/map/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: