chore: update subproject commit reference and enhance error handling in schema files

- Updated the subproject commit reference in epess-database to the latest version.
- Changed error messages in CollaborationSession and Document schemas for improved clarity and security.
- Refactored error handling logic to ensure consistent user authentication checks across multiple schema files.
- Enhanced GraphQL module configuration with new options for better performance and error response handling.
This commit is contained in:
2024-12-09 17:06:23 +07:00
parent 951511228a
commit 8d0b80f09c
5 changed files with 1166 additions and 1257 deletions

View File

@@ -9,7 +9,7 @@ import { PothosModule } from '@smatch-corp/nestjs-pothos'
import { PothosApolloDriver } from '@smatch-corp/nestjs-pothos-apollo-driver'
import { Request } from 'express'
import { RedisPubSub } from 'graphql-redis-subscriptions'
import { Context } from 'graphql-ws'
import { CloseCode, Context, WebSocket } from 'graphql-ws'
import { PersonalMilestoneModule } from 'src/PersonalMilestone/personalmilestone.module'
import { AdminNoteModule } from '../AdminNote/adminnote.module'
import { AnalyticModule } from '../Analytic/analytic.module'
@@ -97,8 +97,10 @@ import { GraphqlService } from './graphql.service'
inject: [GraphqlService, 'PUB_SUB_REDIS'],
useFactory: async (graphqlService: GraphqlService, pubsub: RedisPubSub) => ({
path: process.env.API_PATH + '/graphql',
debug: process.env.NODE_ENV === 'development' || false,
debug: true,
playground: false,
allowBatchedHttpRequests: true,
includeStacktraceInErrorResponses: false,
introspection: process.env.NODE_ENV === 'development' || false,
logger: {
debug: (...args) => Logger.debug(...args, 'GraphqlModule'),