Methods
alias(alias) → {AggregateField}
Sets the alias on the aggregate field that should be used.
Parameters:
| Name | Type | Description |
|---|---|---|
alias |
string |
The label used in the results to describe this aggregate field when a query is run. |
Returns:
| Type | Description |
|---|---|
| AggregateField |
(static) average(property) → {Average}
Gets a copy of the Average aggregate field.
Parameters:
| Name | Type | Description |
|---|---|---|
property |
string |
The property to use for the average calculation. |
Returns:
| Type | Description |
|---|---|
| Average |
(static) count() → {Count}
Gets a copy of the Count aggregate field.
Returns:
| Type | Description |
|---|---|
| Count |
(static) sum(property) → {Sum}
Gets a copy of the Sum aggregate field.
Parameters:
| Name | Type | Description |
|---|---|---|
property |
string |
The property to use for the average calculation. |
Returns:
| Type | Description |
|---|---|
| Sum |