@textile/hub > WriteTransaction > create
WriteTransaction.create() method
create creates a new model instance in the given store.
Signature:
create<T = unknown>(values: T[]): Promise<string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
values | T[] | An array of model instances as JSON/JS objects. |
Returns:
Promise<string[]>