Query
Builds structured queries for data operations performed by DataManager.
Supports filtering, sorting, grouping, paging, and other query transformations
to retrieve and manipulate data from local or remote sources.
Methods
The following table outlines the methods for the Query:
| Name | Parameters | Returns | Description |
|---|---|---|---|
| addParams | key : stringvalue : Function | string | null | Adds a custom parameter to be included in the request generated by Params: | |
| aggregate | type : stringfield : string | Applies an aggregate operation to the specified field.
Supported aggregate types include Params: | |
| page | pageIndex : numberpageSize : number | Applies pagination to the query using the specified page index and page size. Params: | |
| requiresCount | - | Enables total record count retrieval in the query result. When set, the query result will include the total number of records matching the criteria. | |
| search | searchKey : string | number | booleanfieldNames? : string | string[]operator? : stringignoreCase? : booleanignoreAccent? : boolean | Applies a search condition to the query using the specified key, fields, and operator. Supports case-insensitive and accent-insensitive search across one or more fields. Params: | |
| select | fieldNames : string | string[] | Selects specific columns from the data source. Params: | |
| skip | nos : number | Skips the specified number of records from the top of the data source. Params: | |
| sortBy | fieldName : string | string[]comparer? : string | FunctionisFromGroup? : boolean | Sorts the data using the specified field(s) and sort direction or comparer. By default, the sort direction is ascending unless a custom comparer is provided. Params: | |
| sortByDesc | fieldName : string | Sorts the data in descending order based on the specified field. Params: | |
| take | nos : number | Limits the result set to the specified number of records from the top of the data source. Params: | |
| where | fieldName : string | Predicate | Predicate[]operator? : stringvalue? : ValueType | nullignoreCase? : booleanignoreAccent? : booleanmatchCase? : boolean | Applies a filter condition to the query using the specified field, operator, and value. Supports case sensitivity, accent handling, and predicate chaining for advanced filtering. Params: |