Home > @i2analyze/i2connect > services > IResult > getLinkFromSeed
services.IResult.getLinkFromSeed() method
Gets a previously added link record from the result, based on a link record that was passed to the service as a seed.
Signature:
getLinkFromSeed<TLinkType extends schema.ILinkType>(seed: records.ITypedSeedLinkRecord<TLinkType>): (records.ISeededResultLinkRecord & records.ITypedSeededResultRecord<TLinkType>) | undefined;
Introduced: API version 2.0
Type Parameters
Parameter | Type | Description |
---|---|---|
TLinkType | extends schema.ILinkType | The type of the previously added link record. |
Parameters
Parameter | Type | Description |
---|---|---|
seed | records.ITypedSeedLinkRecord<TLinkType> | The link record that was passed to the service method as a seed. |
Returns:
(records.ISeededResultLinkRecord & records.ITypedSeededResultRecord<TLinkType>) | undefined
The link record that was previously added to the result, or undefined
if it was not previously added.