You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Currently, if i register two graphql endpoints scoped to specific modules (using include: [MyModule]) the schema contains resolvers/types from both modules: https://github.com/sadams/nestjs-graphql_multiple-endpoints-bug/tree/master
Meaning the schema is incorrect and i can't register two resolvers with the same name under different endpoints.
Expected behavior
Each endpoint should contain resolvers/types specific only to the modules included when registering each path.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
I need to expose completely separate graphql endpoints in the same application.
Environment
"@nestjs/common": "6.11.6",
"@nestjs/core": "6.11.6",
"@nestjs/graphql": "6.5.4",
For Tooling issues:
- Node version: v10.16.3
- Platform: Mac
The text was updated successfully, but these errors were encountered:
sadams
changed the title
Multiple graphql endpoints share merged schema (using include to specify module scope)
Multiple graphql endpoints share merged schema (using include to specify module scope)
Feb 7, 2020
I'm submitting a...
Current behavior
Currently, if i register two graphql endpoints scoped to specific modules (using
include: [MyModule]
) the schema contains resolvers/types from both modules:https://github.com/sadams/nestjs-graphql_multiple-endpoints-bug/tree/master
Meaning the schema is incorrect and i can't register two resolvers with the same name under different endpoints.
Expected behavior
Each endpoint should contain resolvers/types specific only to the modules included when registering each path.
Minimal reproduction of the problem with instructions
https://github.com/sadams/nestjs-graphql_multiple-endpoints-bug/tree/master
What is the motivation / use case for changing the behavior?
I need to expose completely separate graphql endpoints in the same application.
Environment
The text was updated successfully, but these errors were encountered: