count method
Creates a count aggregation query.
Returns: An AggregateQuery for counting documents.
Example:
var countQuery = query.count();
Implementation
AggregateQuery count() {
Query<T> newQuery = Query<T>(
helper: QueryHelper(),
oracledb: _oracledb,
path: path,
);
_helper.dupQuery(newQuery, this);
dynamic obj;
obj = {"func": "count", "field": "", "op_key": ""};
newQuery._aggregate.add(obj);
return AggregateQuery(query: newQuery);
}