chore: update configuration and improve schema imports
- Updated biome.json to include "graphql.d.ts" in the ignored files list. - Updated subproject commit reference in epess-database to the latest version. - Removed unused script from package.json and streamlined module file extensions in tsconfig.json. - Consolidated exclude patterns in tsconfig.build.json for clarity. - Refactored imports across multiple schema files for consistency and improved readability. - Enhanced various schema files by ensuring proper import order and removing redundant code. - Improved error handling and data integrity checks in several service and schema files.
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import { Inject, Injectable } from '@nestjs/common'
|
||||
import {
|
||||
Pothos,
|
||||
PothosRef,
|
||||
PothosSchema,
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos'
|
||||
import { Pothos, PothosRef, PothosSchema, SchemaBuilderToken } from '@smatch-corp/nestjs-pothos'
|
||||
import { Builder } from '../Graphql/graphql.builder'
|
||||
import { PrismaService } from '../Prisma/prisma.service'
|
||||
|
||||
@@ -43,20 +38,16 @@ export class AdminNoteSchema extends PothosSchema {
|
||||
description: 'The date and time the admin note was last updated.',
|
||||
}),
|
||||
centerId: t.exposeString('centerId', {
|
||||
description:
|
||||
'The ID of the center the admin note is associated with.',
|
||||
description: 'The ID of the center the admin note is associated with.',
|
||||
}),
|
||||
serviceId: t.exposeString('serviceId', {
|
||||
description:
|
||||
'The ID of the service the admin note is associated with.',
|
||||
description: 'The ID of the service the admin note is associated with.',
|
||||
}),
|
||||
mentorId: t.exposeString('mentorId', {
|
||||
description:
|
||||
'The ID of the mentor the admin note is associated with.',
|
||||
description: 'The ID of the mentor the admin note is associated with.',
|
||||
}),
|
||||
resumeId: t.exposeString('resumeId', {
|
||||
description:
|
||||
'The ID of the resume the admin note is associated with.',
|
||||
description: 'The ID of the resume the admin note is associated with.',
|
||||
}),
|
||||
mentor: t.relation('mentor', {
|
||||
description: 'The mentor the admin note is associated with.',
|
||||
|
||||
Reference in New Issue
Block a user