How to use the @loopback/repository.repository function in @loopback/repository

To help you get started, we’ve selected a few @loopback/repository examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sourcefuse / loopback4-starter / src / modules / auth / login.controller.ts View on Github external
constructor(
    @inject(AuthenticationBindings.CURRENT_CLIENT)
    private readonly client: AuthClient | undefined,
    @inject(AuthenticationBindings.CURRENT_USER)
    private readonly user: AuthUser | undefined,
    @inject(AuthorizationBindings.USER_PERMISSIONS)
    private readonly getUserPermissions: UserPermissionsFn,
    @repository(AuthClientRepository)
    public authClientRepository: AuthClientRepository,
    @repository(UserRepository)
    public userRepo: UserRepository,
    @repository(UserTenantRepository)
    public userTenantRepo: UserTenantRepository,
    @repository(UserTenantPermissionRepository)
    public utPermsRepo: UserTenantPermissionRepository,
    @repository(RefreshTokenRepository)
    public refreshTokenRepo: RefreshTokenRepository,
  ) {}
  // sonarignore_end
github strongloop / loopback4-example-microservices / services / customer / src / controllers / customer.controller.ts View on Github external
constructor(
    @repository('CustomerRepository')
    private customerRepository: CustomerRepository,
  ) {}
github sourcefuse / loopback4-starter / src / modules / user-tenants / user.controller.ts View on Github external
constructor(
    @repository(UserRepository)
    public userRepository: UserRepository,
  ) {}
github strongloop / loopback-next / examples / todo-list / src / controllers / todo-list.controller.ts View on Github external
constructor(
    @repository(TodoListRepository)
    public todoListRepository: TodoListRepository,
  ) {}
github sourcefuse / loopback4-starter / src / modules / auth / providers / local-password-verify.provider.ts View on Github external
constructor(
    @repository(UserRepository)
    public userRepository: UserRepository,
  ) {}
github dofapi / dofapi / server / src / controllers / set-equipments.controller.ts View on Github external
constructor(
    @repository(SetRepository) protected setRepo: SetRepository,
  ) { }
github strongloop / loopback4-example-microservices / services / transaction / src / controllers / transaction.controller.ts View on Github external
constructor(
    @repository('TransactionRepository')
    private transactionRepository: TransactionRepository,
  ) {}
github strongloop / loopback4-example-shopping / packages / shopping / src / controllers / user.controller.ts View on Github external
constructor(
    @repository(UserRepository) public userRepository: UserRepository,
    @inject('services.RecommenderService')
    public recommender: RecommenderService,
    @inject(PasswordHasherBindings.PASSWORD_HASHER)
    public passwordHasher: PasswordHasher,
    @inject(TokenServiceBindings.TOKEN_SERVICE)
    public jwtService: TokenService,
    @inject(UserServiceBindings.USER_SERVICE)
    public userService: UserService,
  ) {}
github strongloop / loopback-next / examples / todo-list / src / controllers / todo.controller.ts View on Github external
  constructor(@repository(TodoRepository) protected todoRepo: TodoRepository) {}
github strongloop / loopback4-example-shopping / packages / shopping / src / controllers / shopping-cart.controller.ts View on Github external
constructor(
    @repository(ShoppingCartRepository)
    public shoppingCartRepository: ShoppingCartRepository,
  ) {}