count method
Implementation
Future<DbQueryResponse> count() async {
Map<String, dynamic> params = {'query': this._fieldFilters};
CloudBaseResponse res =
await _queryRequest('database.countDocument', params);
if (res.code != null) {
return DbQueryResponse(
code: res.code,
message: res.message,
requestId: res.requestId,
);
}
return DbQueryResponse(
requestId: res.requestId,
total: res.data['total'],
);
}