Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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). #12453

Open
abuabbas1991365 opened this issue Apr 28, 2024 · 0 comments

Comments

@abuabbas1991365
Copy link

Issue description

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).
at get schema [as schema] (/home/bitcot/Documents/Bitcot/node-serverless-base/gateway/node_modules/@nestjs/graphql/dist/graphql-schema.host.js:12:19)
at Timeout._onTimeout (/home/bitcot/Documents/Bitcot/node-serverless-base/gateway/.build/src/app.initializer.js:37:42)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

Context

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).
at get schema [as schema] (/home/bitcot/Documents/Bitcot/node-serverless-base/gateway/node_modules/@nestjs/graphql/dist/graphql-schema.host.js:12:19)
at Timeout._onTimeout (/home/bitcot/Documents/Bitcot/node-serverless-base/gateway/.build/src/app.initializer.js:37:42)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

@abuabbas1991365 abuabbas1991365 changed the title GraphQL schema has not yet been created. Make sure to c 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). Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant