ApplicationBatchSaver allows you to do basic configuration of batch saving:

  • set saved items,
  • save.

Type parameters

Hierarchy

Methods

all

  • all(): Promise<void>
  • The method runs a batch save.

    The app items defined by the ApplicationBatchSaveBuilder.items method are saved. The maximum number of items is 10000.

    await  Application.batch().save().items((function*(){
        for (var i = 0; i < 100;  i++) { 
            yield Application.create(); 
        } 
    })()).all(); 
    

    Returns Promise<void>

items

notify

  • notify(enabled: boolean): this
  • The method sets notifications for when app items are saved.

    Parameters

    • enabled: boolean

    Returns this