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:
2024-11-30 17:00:34 +07:00
parent af81874793
commit 7729d3ce63
2 changed files with 17 additions and 4 deletions

View File

@@ -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']
},
},