0.0.1 • Published 4 years ago

@almahu/loopback-component-filter v0.0.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 years ago

loopback-component-filter

LoopBack

Installation

Install LoopbackFilterComponent using npm;

$ [npm install | yarn add] loopback-component-filter

Basic Use

Configure and load LoopbackFilterComponent in the application constructor as shown below.

import {LoopbackFilterComponent, LoopbackFilterComponentOptions, DEFAULT_LOOPBACK_COMPONENT_FILTER_OPTIONS} from 'loopback-component-filter';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: LoopbackFilterComponentOptions = DEFAULT_LOOPBACK_COMPONENT_FILTER_OPTIONS;
    this.configure(LoopbackFilterComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(LoopbackFilterComponent);
    // ...
  }
  // ...
}
0.0.1

4 years ago