new DataSource( [primaryKey])
The base class for all data sources.
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
primaryKey |
string |
<optional> |
'__primary_key__' | The primary key of the entity set. |
Members
-
primaryKey :string
-
The primary key of the data source.
Type:
- string
Methods
-
normalizeOrderBy(orderBy)
-
Normalize the orderby parameter for data source.
Parameters:
Name Type Description orderByOrderByConfig Returns:
- Type
- Array.<NormalizedOrderByPair>
-
query(params)
-
Query the data source with given parameters
Parameters:
Name Type Description paramsobject The query parameters