Aggregation
Static Method Summary
Static Public Methods | ||
public static |
|
|
public static |
|
|
public static |
|
|
public static |
|
|
public static |
|
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
initial: * |
|
public set |
|
|
public |
key: * |
|
public get |
query: * |
|
public set |
|
|
public get |
reduceFn: * |
|
public set |
|
Method Summary
Public Methods | ||
public |
by(field: *): * |
|
public |
process(entities: *[]): * |
|
public |
toPlainObject(): {"key": *, "initial": *, "reduce": *, "reduceFn": *, "condition": *, "query": *} |
Static Public Methods
public static average(field: string): * source
Params:
Name | Type | Attribute | Description |
field | string |
|
Return:
* |
public static count(field: string): * source
Params:
Name | Type | Attribute | Description |
field | string |
|
Return:
* |
public static max(field: string): * source
Params:
Name | Type | Attribute | Description |
field | string |
|
Return:
* |
Public Constructors
public constructor() source
Public Members
public get initial: * source
public set initial source
public key: * source
public get query: * source
public set query source
public get reduceFn: * source
public set reduceFn source
Public Methods
public process(entities: *[]): * source
Params:
Name | Type | Attribute | Description |
entities | *[] |
|
Return:
* |
public toPlainObject(): {"key": *, "initial": *, "reduce": *, "reduceFn": *, "condition": *, "query": *} source
Return:
{"key": *, "initial": *, "reduce": *, "reduceFn": *, "condition": *, "query": *} |