We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a service to manage server logic
findAll
findByUserId
findById
create
update
delete
export const getServersValidator = vine.compile( vine.object({ page: vine.number().optional(), limit: vine.boolean().optional(), }) ) export type GetServersSchema = Infer<typeof getServersValidator> export default class ServerService { async findAll({ page = 1, limit = 10 }: GetServersSchema) { return Server.query() .paginate(1, 10) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Spécifications
Create a service to manage server logic
findAll
findByUserId
findById
create
update
delete
The text was updated successfully, but these errors were encountered: