foundation-comms.datasource.createitem
Home > @genesislcap/foundation-comms > Datasource > createItem
Datasource.createItem() method
Creates a new item in the datasource with the specified data.
Signature:
createItem?(data: any): Promise<string>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
any |
The data to create the item with. |
Returns:
Promise<string>
A promise that resolves with the ID of the created item.