Skip to main content
Version: 5.7.0

GetList

Method gets list of entities from the server base on type and/or where clause.

Fields available for use in the 'where' clause are:

  • entityType

  • createdAt

  • updatedAt

    Along with all custom data (using data.). For more information on the query syntax see here.

ServiceOperation
entityGET_LIST

Method Parameters

ParameterDescription
whereJsonMongo style query string
orderByJsonSpecifies the order in which the query returns matching documents. The sort parameter consists of a field followed by an ascending(1)/descending flag(-1). eg. { "name" : 1} sorts by name in ascending order
maxReturnThe maximum number of entities to return

Usage

http://localhost:3000
string whereJson = "{\"entityType\":\"address\",\"data.street\":\"1309 Carling\"}";
string orderByJson = "{\"data.street\":1}";
int maxReturn = 50;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.EntityService.GetList(whereJson, orderByJson, maxReturn, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"_serverTime": 1637946319239,
"entityListCount": 1,
"entityList": [{
"gameId": "123455",
"entityId": "a3def0eb-3993-4a95-8fef-27f50a6d0f69",
"ownerId": "11c9dd4d-9ed1-416d-bd04-5228c1efafac",
"entityType": "address",
"version": 1,
"data": {
"street": "123 Ave"
},
"acl": {
"other": 1
},
"createdAt": 1449870753354,
"updatedAt": 1449870753354
}]
}
}