Page Contents

Home > @loopback/repository > relation

relation() function

Decorator for relations

Signature:

export declare function relation(definition?: Object): PropertyDecorator;

Parameters

Parameter Type Description
definition Object (Optional)

Returns:

PropertyDecorator

A property decorator