@pd-solucoes/generic-validator-adonisjs5
v1.0.1
Published
Generic Validator to AdonisJS 5.0
Downloads
5
Readme
Generic Validator to AdonisJS
A abstract class that defines methods to you write to do a Generic CRUD:
create
Method to create a new entity.
updateById
Method to update an entity by ID.
findById
Method to find an entity by ID, by default receives an object with id key as number. You can overwrite.
getPaginate
Method to return many paged entities. It receives the following object:
{ page: number limit: number filter: string }
If there was page key, the limit key must also exist. All elements are optional. You can overwrite.