Page Contents

Home > @loopback/repository > HasOneRepository

HasOneRepository interface

CRUD operations for a target repository of a HasMany relation


export interface HasOneRepository<Target extends Entity> 


Method Description
create(targetModelData, options) Create a target model instance
delete(options) Delete the related target model instance
get(filter, options) Find the only target model instance that belongs to the declaring model.
patch(dataObject, options) Patch the related target model instance