implement platform config
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user