Page Contents

Home > @loopback/repository > RelationDefinitionBase > targetsMany

RelationDefinitionBase.targetsMany property

True for relations targeting multiple instances (e.g. HasMany), false for relations with a single target (e.g. BelongsTo, HasOne). This property is needed by OpenAPI/JSON Schema generator.

Signature:

targetsMany?: boolean;