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