LogDataSource
Defined in: js-api/src/dapi.ts:2814
Common functionality for handling collections of entities stored on the server. Works with Datagrok REST API, allows to get filtered and paginated lists of entities, Can be extended with specific methods. (i.e. UsersDataSource)
The fluent methods (filter, order, page, by, include, ...) are immutable: each returns a new source and leaves this one as it was, so a source can be kept in a variable and reused as a starting point.
Example
const projects = grok.dapi.projects.order('createdOn', true);
const recent = await projects.filter('createdOn > -1w').list({pageSize: 20});
const all = await projects.list(); // still unfiltered
Extends
Constructors
Constructor
new LogDataSource(
s):LogDataSource
Defined in: js-api/src/dapi.ts:2815
Parameters
| Parameter | Type |
|---|---|
s | any |
Returns
LogDataSource
Overrides
Properties
| Property | Type | Inherited from | Defined in |
|---|---|---|---|
clsName | string | HttpDataSource.clsName | js-api/src/dapi.ts:349 |
dart | any | HttpDataSource.dart | js-api/src/dapi.ts:348 |
Accessors
activity
Get Signature
get activity():
ActivityDataSource
Defined in: js-api/src/dapi.ts:2820
Activity API endpoint
Returns
Methods
_prepare()
_prepare(
q?):any
Defined in: js-api/src/dapi.ts:365
Parameters
| Parameter | Type |
|---|---|
q | DataSourceQuery |
Returns
any
Inherited from
allPackageVersions()
allPackageVersions():
this
Defined in: js-api/src/dapi.ts:430
A source without package version isolation: entities of all package versions, not only the current one.
Returns
this