getObjectCount method
This API returns the number of objects in a table (if the whereClause is not set), otherwise the number of objects matching the search query.
Implementation
@override
Future<int?> getObjectCount({String? whereClause}) async {
String methodName = '/data/$tableName/count';
if (whereClause?.isNotEmpty ?? false) methodName += '?where=$whereClause';
return await Invoker.get(methodName);
}