getCategories
Usage
const categories = await dataSource.getCategories({
column: 'categories_column',
operation: 'count',
operationColumn: 'values_column',
operationExp?: string
// + base options...
});Options
export interface CategoryRequestOptions extends BaseRequestOptions {
column: string;
operation: 'count' | 'avg' | 'min' | 'max' | 'sum' | 'custom';
operationColumn?: string | '*';
operationExp?: string;
othersThreshold?: number;
}Response

Last updated
Was this helpful?
