Length¶
Description¶
This operation counts and returns the number of values in the list.
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]/list/[key]/length
where:
Argument | Description |
---|---|
[hive-name] |
Name of a hive where the operation is performed. |
[key] |
Key name identifying a list. |
Request Headers¶
None.
Request Body¶
None.
Response Body¶
The total number of values stored in the specified list.
Example¶
The example below returns the total number of items stored in the fruits
list.
curl --location --request GET "https://xxxx.backendless.app/api/hive/shoppingCart/list/fruits/length"
where:
Argument | Description |
---|---|
shoppingCart |
Name of a hive where the operation is performed. |
fruits |
Key name identifying a list to get the total number of values. |
Codeless Reference
¶
where:
Argument | Description |
---|---|
hive name |
Name of a hive where the operation is performed. |
key name |
Key name identifying a list. |
Returns the total number of values in the list.
Consider the following List storage:
The example below counts the number of items in the demoList
: