New in 1.43.0 (BETA)

create(attributes)

Creates data and returns a corresponding new DataItem instance. The attributes are provided to the corresponding create callback (see Scrivito.provideDataClass).

Params

  • attributes (Object) – A plain JS object containing key-value pairs for the data to be created. The keys must be valid identifiers.

Returns

promise (Promise) – A promise that resolves with a DataItem for the new data.