src/api/dataops/dataset.ts
Dataset object used to fetch and modify data at your datasets.
For TypeScript users it implements a generic type T
that represents your dataset, default to any.
This object must be build from the data operations module, never to be instantiated directly.
```typescript
Properties |
|
Methods |
Accessors |
Public attach | ||||||||||||
attach(resourceName: string, filter: IFilteringCriterion
|
||||||||||||
Creates an Attach query.
Parameters :
Returns :
ActionQuery<T, D>
ActionQuery object specialized for attaching resources to the current one. |
Public delete |
delete()
|
Creates a Delete query
Returns :
DeleteQuery<D>
Query object specialized for delete statements You need to specify a filter to narrow down the records that you want deleted from the backend. |
Public detach | ||||||||||||
detach(resourceName: string, filter: IFilteringCriterion
|
||||||||||||
Creates a Detach query.
Parameters :
Returns :
ActionQuery<T, D>
ActionQuery object specialized for detaching resources from the current one. |
Public insert | ||||||||
insert(data: Array
|
||||||||
Creates an Insert query.
Parameters :
Returns :
InsertQuery<D>
Query object specialized for insert statements If saving into a strict schema dataset, you need to provide values for the required fields for that particular dataset. |
Public select |
select()
|
Creates a Select query.
Returns :
SelectQuery<D>
Query object specialized for select statements. With no filters set, returns all records in the selected dataset. |
Public update | ||||||||
update(data: T)
|
||||||||
Creates an Update query.
Parameters :
Returns :
UpdateQuery<T>
Query object specialized for update statements. Don't forget to apply a filter to specify the fields that will be modified. |
Public Readonly resourceType |
Type : ResourceType
|
Default value : ResourceType.Dataset
|
Resource type of the dataset |
name |
getname()
|
Name of the working dataset.
Returns :
string
|