i2 Connect SDK
Search results for

    Show/hide table of contents

    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.

    In this article
    Back to top © N. Harris Computer Corporation (2022)