New in 1.34.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 newly created data.