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

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