Page Contents
Home > @loopback/repository > HasManyThroughRepository > create
HasManyThroughRepository.create() method
Create a target model instance
Signature:
create(targetModelData: DataObject<Target>, options?: Options & {
throughData?: DataObject<Through>;
throughOptions?: Options;
}): Promise<Target>;
Parameters
Parameter | Type | Description |
---|---|---|
targetModelData | DataObject<Target> | The target model data |
options | Options & { throughData?: DataObject<Through>; throughOptions?: Options; } | Options for the operation |
Returns:
Promise<Target>
A promise which resolves to the newly created target model instance