Page Contents

Home > @loopback/repository > buildModelDefinition

buildModelDefinition() function

Build model definition from decorations

Signature:

export declare function buildModelDefinition(target: Function & {
    definition?: ModelDefinition | undefined;
}, def?: ModelDefinitionSyntax): ModelDefinition;

Parameters

Parameter Type Description
target Function & {
definition?: ModelDefinition | undefined;
}
Target model class
def ModelDefinitionSyntax Model definition spec

Returns:

ModelDefinition