adel_kasno
(Adel Kanso)
September 18, 2020, 3:01pm
1
I’ve seen that in the cloud 99 plan, API calls are limited…
Does an API call is when invoking an API service?
ex:
async UpdateBook(person) {
var personFound = await Backendless.Data.of("person ").findById(person.id);
var whereClause = "person='" + personFound.objectId + "'";
return Backendless.Data.of("ride").bulkUpdate(whereClause, {
"name": "example"
});
}
So when I call UpdateBook this will count as 1 API call?
Or two API calls (1 for retrieve person and 1 for updating book)?
adel_kasno
(Adel Kanso)
September 18, 2020, 3:12pm
3
Does this count as 4 Api calls ?
async UpdateBook(person) {
var queryBuilder = Backendless.DataQueryBuilder.create();
queryBuilder.setRelated(“details”);
var personFound = await Backendless.Data.of("person ").findById(person.id,queryBuilder);
var whereClause = “person=’” + personFound.objectId + “’”;
return Backendless.Data.of(“ride”).bulkUpdate(whereClause, {
“name”: “example”
});
}
Hello @adel_kasno .
Yes, it will be 4 api calls.
API service is also an API call.