Query
Class representing a Query.
Constructor Summary
Public Constructor | ||
public |
Creates a Query object. |
Method Summary
Public Methods | ||
public |
aggregates(aggregates: Aggregate[]) Sets the Aggregates on a query. |
|
public |
featureQuery(query: FeatureQuery) Applies the FeatureQuery to the Query |
|
public |
Sets a list of Fields to be returned. |
|
public |
Sets a Filter for the Query. |
|
public |
indexQuery(query: IndexQuery) Applies the IndexQuery to the Query |
|
public |
Sets the limit on the Query. |
|
public |
Sets the offset on the Query. |
|
public |
Sets the Sorts on a Query. |
|
public |
transforms(transforms: Transform[]) Sets the Transforms on a Query. |
Public Constructors
Public Methods
public aggregates(aggregates: Aggregate[]) source
Sets the Aggregates on a query. Aggregates is a set of Aggregates to run against a result set.
Params:
Name | Type | Attribute | Description |
aggregates | Aggregate[] | The list of Aggregates. |
public featureQuery(query: FeatureQuery) source
Applies the FeatureQuery to the Query
Params:
Name | Type | Attribute | Description |
query | FeatureQuery |
public fields(fields: Field[]) source
Sets a list of Fields to be returned.
Params:
Name | Type | Attribute | Description |
fields | Field[] | The Fields to be returned from a search. |
public filter(filter: Filter) source
Sets a Filter for the Query.
Params:
Name | Type | Attribute | Description |
filter | Filter | The Filter to be applied to the Query. |
public indexQuery(query: IndexQuery) source
Applies the IndexQuery to the Query
Params:
Name | Type | Attribute | Description |
query | IndexQuery |
public limit(limit: number) source
Sets the limit on the Query. This determines the maximum number of results each search will return.
Params:
Name | Type | Attribute | Description |
limit | number | The maximum number of results to return per search. |
public offset(offset: number) source
Sets the offset on the Query.
Params:
Name | Type | Attribute | Description |
offset | number | The offset to use. |