@mindk/adonis-api-filter
v1.0.3
Published
Adonis query builder by api
Downloads
2
Keywords
Readme
adonis-api-filter
Adonis query builder by api
Installation
Install via npm
npm install --save @mindk/adonis-api-filter
Registering provider
Make sure to register the api filter provider to make use of ApiFilter
. The providers are registered inside start/app.js
const providers = ['@mindk/adonis-api-filter/providers/ApiFilterProvider'];
Quick Example
const ApiFilter = use('MindK/ApiFilter');
const UserModel = use('App/Models/User');
const filter = new ApiFilter(UserModel);
const user = await filter.find({ where: { id: 1 } });