diff --git a/src/ServiceAndCategory/serviceandcategory.schema.ts b/src/ServiceAndCategory/serviceandcategory.schema.ts index 6169836..0651b2b 100644 --- a/src/ServiceAndCategory/serviceandcategory.schema.ts +++ b/src/ServiceAndCategory/serviceandcategory.schema.ts @@ -94,7 +94,12 @@ export class ServiceAndCategorySchema extends PothosSchema { resolve: async (query, _root, args, _ctx, _info) => { return await this.prisma.serviceAndCategory.update({ ...query, - where: args.where, + where: { + serviceId_subCategoryId: { + serviceId: args.where.serviceId as string, + subCategoryId: args.where.subCategoryId as string, + }, + }, data: { isDeleted: true, },