File

src/api/core/queries/insertQuery.ts

Description

Query object specialized for insert statements. For TypeScript users it implements a generic type T that represents your dataset (defaults to any). This object is generated automatically from the Dataset object, never to be instantiated directly.

Example

```typescript

  • dataModule.dataset("posts")
  • .insert({
  • title: "My Title"
  • })
  • .execute();
  • ```

Extends

BaseQuery

Example

Index

Methods

Methods

Public fields
fields(fields: Array)

Select the fields to be returned at the response that represent the affected data Aggregation functions can be provided as an object: { fn: aggFn, col: string }

Parameters :
Name Type Optional Description
fields Array<Extract | IAggField> No

fields names or aggregation object

Public fields
fields(...fields: Array)
Parameters :
Name Type Optional
fields Array<Extract | IAggField> No
Public fields
fields(field: K | IAggField, ...fields: Array)
Type parameters :
  • K
Parameters :
Name Type Optional
field K | IAggField<T> No
fields Array<K | IAggField> No

result-matching ""

    No results matching ""