@almahu/loopback-component-filter
v0.0.1
Published
loopback component to filter deep with relations
Downloads
1
Maintainers
Readme
loopback-component-filter
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);
// ...
}
// ...
}