Page Contents

Home > @loopback/typeorm > typeorm > repository

typeorm.repository() function

Signature:

function repository(entity: Function, connectionName?: string): (target: Object, member: string | undefined, methodDescriptorOrParameterIndex?: number | TypedPropertyDescriptor<any> | undefined) => void;

Parameters

Parameter Type Description
entity Function  
connectionName string  

Returns:

(target: Object, member: string | undefined, methodDescriptorOrParameterIndex?: number | TypedPropertyDescriptor<any> | undefined) => void