DocsWorkflowsComponentsAppapp:record:bulk:insert

app:record:bulk:insert

Inserts a set of records into a schema table in one write and returns their identifiers

Options

NameTypeDescription
schemastringThe name of the schema (database) that contains the table
tablestringThe name of the table to insert the records into
records[]RecordThe records to insert, each a key-value object

Outputs

NameTypeDescription
ids[]stringThe identifiers of the inserted records, in the order they were given
countintThe number of records inserted

Example

name: Insert several records at once
actions:
  - name: inserted
    component: app:record:bulk:insert
    vars:
      schema: content
      table: articles
      records: "{{ prepared.items }}"

outputs:
  ids: "{{ inserted.ids }}"
  count: "{{ inserted.count }}"