GetListCount
Method gets a count of entities based on the where clause.
Fields available for use in the 'where' clause are:
- entityType
- entityIndexedId
- createdAt
- updatedAt
- ownerId
- timeToLive
Along with all custom data (using data.
). For more information on the query syntax see here.
Service | Operation |
---|---|
globalEntity | GET_LIST_COUNT |
Method Parameters
Parameter | Description |
---|---|
where | A mongo style query string. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var where = {
"entityType": "address"
};
var globalEntityProxy = bridge.getGlobalEntityServiceProxy();
var postResult = globalEntityProxy.getListCount(where);
if (postResult.status == 200) {
// Success!
}
{
"service": "globalEntity",
"operation": "GET_LIST_COUNT",
"data": {
"where": {
"entityType": "address"
}
}
}
JSON Response
{
"status": 200,
"data": {
"entityListCount": 5
}
}