Hello, i have been folowing the documentation here: https://docs.nestjs.com/graphql/complexity
And than import the plugin in the providers of the app.module but i can see that the schema object from this.gqlSchemaHost; is undefined.
This lead to error : Unexpected error processing request: Error: GraphQL schema has not yet been created. Make sure to call the "GraphQLSchemaHost#schema" getter when the application is already initialized (after the "onModuleInit" hook triggered by either "app.listen()" or "app.init()" method).
I think this is because i am using federation and the schema is not created in the first place but i can't figure out how to make it work.
I am also using GraphQLModule.forRootAsync and useFactory to init my GraphqlModule maybe it is related.
Thanks in advance for helping me.
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).