implement platform config

This commit is contained in:
2024-10-29 19:06:01 +07:00
parent 075610fb9b
commit e003bcd634
11 changed files with 213 additions and 82 deletions

View File

@@ -86,7 +86,7 @@ export class ScheduleSchema extends PothosSchema {
type: this.schedule(),
description: 'Retrieve a single schedule by its unique identifier.',
args: this.builder.generator.findUniqueArgs('Schedule'),
resolve: async (query, root, args, ctx, info) => {
resolve: async (query, _root, args, _ctx, _info) => {
return await this.prisma.schedule.findUnique({
...query,
where: args.where,
@@ -99,7 +99,7 @@ export class ScheduleSchema extends PothosSchema {
args: this.builder.generator.findManyArgs('Schedule'),
description:
'Retrieve a list of schedules with optional filtering, ordering, and pagination.',
resolve: async (query, root, args, ctx, info) => {
resolve: async (query, _root, args, _ctx, _info) => {
return await this.prisma.schedule.findMany({
...query,
skip: args.skip ?? undefined,