Home > @i2analyze/i2connect > seeds
seeds() function
The @seeds
decorator, which configures a service method parameter to receive records to use as seeds.
Signature:
export declare function seeds(constraints: services.ISeedConstraints<schema.IEntityType> | services.ISeedConstraints<schema.ILinkType>): ParameterDecorator;
Introduced: API version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
constraints | services.ISeedConstraints<schema.IEntityType> | services.ISeedConstraints<schema.ILinkType> | Constraints on the records that can be passed as seeds to the service. |
Returns:
ParameterDecorator
Remarks
To make your service code simpler, try to constrain the seeds as strongly as you can.