CollectionsImport is a form model to bulk import (create, replace and delete) collections from a user provided list.

Hierarchy

Implements

Constructors

Methods

Properties

Constructors

Methods

  • Submit applies the import, aka.:

    • imports the form collections (create or replace)
    • sync the collection changes with their related records table
    • ensures the integrity of the imported structure (aka. run validations for each collection)
    • if [form.DeleteMissing] is set, deletes all local collections that are not found in the imports list

    All operations are wrapped in a single transaction that are rollbacked on the first encountered error.

    You can optionally provide a list of InterceptorFunc to further modify the form behavior before persisting it.

    Parameters

    Returns void

Properties

collections: models.Collection[]
deleteMissing: boolean

Generated using TypeDoc