refactor: improve code readability and logging in GraphQL builder
- Reformat plugin array for better readability in the Builder class constructor. - Enhance unused query handling by adding logging for unused queries in development. - Update TypeScript error comment for clarity in GraphqlModule, specifying that the request is not typed.
This commit is contained in:
@@ -114,7 +114,7 @@ import { PubSubService } from 'src/PubSub/pubsub.service'
|
||||
if (!ctx.extra) {
|
||||
throw new Error('No extra provided')
|
||||
}
|
||||
// @ts-expect-error: TODO
|
||||
// @ts-expect-error: Request is not typed
|
||||
ctx.extra.request.headers['x-session-id'] = ctx.connectionParams['x-session-id']
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user