@adonis-agora/filter
Version:
Server-side query filtering/sorting/pagination for AdonisJS — Spatie-style input, a Lucid adapter, and field allow-listing. Part of the Agora ecosystem.
18 lines • 765 B
TypeScript
import { BaseCommand } from '@adonisjs/core/ace';
import type { CommandOptions } from '@adonisjs/core/types/ace';
/**
* `node ace make:filter <name>` — scaffold a filter class under `app/filters/`.
*
* The generated class extends `BaseModelFilter`: allow-lists as statics for the plain columns, a
* `setup()` for the scope the client cannot relax, and a method per key that needs SQL of its own.
* It is `@inject()`ed, so a constructor dependency resolves through the container exactly as a
* controller's does.
*/
export default class MakeFilter extends BaseCommand {
static commandName: string;
static description: string;
static options: CommandOptions;
name: string;
run(): Promise<void>;
}
//# sourceMappingURL=make_filter.d.ts.map