Page Contents
Home > @loopback/repository > HasManyThroughRepository > unlink
HasManyThroughRepository.unlink() method
Removes an association to an existing target model instance
Signature:
unlink(targetModelId: TargetID, options?: Options & {
throughOptions?: Options;
}): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
targetModelId | TargetID | The target model to unlink |
options | Options & { throughOptions?: Options; } |
Returns:
Promise<void>
A promise which resolves to null