Page Contents

Home > @loopback/repository > DefaultHasOneRepository > get

DefaultHasOneRepository.get() method

Signature:

get(filter?: Pick<Filter<TargetEntity>, Exclude<keyof Filter<TargetEntity>, 'where'>>, options?: Options): Promise<TargetEntity>;

Parameters

Parameter Type Description
filter Pick<Filter<TargetEntity>, Exclude<keyof Filter<TargetEntity>, 'where'>>  
options Options  

Returns:

Promise<TargetEntity>