Skip to content

Commit

Permalink
fix(typegraphql): fix typings since injector isn't compatible with th…
Browse files Browse the repository at this point in the history
…e type signature of container typegraphql definition
  • Loading branch information
Romakita committed Sep 8, 2024
1 parent 343713d commit b905d78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class TypeGraphQLService {
const resolvers: any = this.getResolvers(id, [...(initialResolvers as any[]), ...(buildSchemaOptions.resolvers || [])]);

const schema = await this.createSchema({
container: this.injector,
container: this.injector as never,
...buildSchemaOptions,
resolvers,
globalMiddlewares: [ContextMiddleware, ...(buildSchemaOptions.globalMiddlewares || [])]
Expand Down

0 comments on commit b905d78

Please sign in to comment.