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