Generated schemas for multiple instances are same
See original GitHub issueI’m submitting a…
[ ] 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
I’m using multiple GraphQL instances with code first pattern.
Example:
GraphQLModule.forRoot({
path: '/graphql',
include: [CatModule],
autoSchemaFile: 'graphql/schema.graphql',
}),
GraphQLModule.forRoot({
path: '/admin-graphql',
include: [CatAdminModule],
autoSchemaFile: 'graphql/admin-schema.graphql',
}),
It will generate same schemas, include all resolvers and types in project.
Expected behavior
Generated schemas include only declared modules.
Environment
Nest version: 6.0.5
For Tooling issues:
- Node version: v11.11.0
- Platform: Mac
Others:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Multiple Instances Of Oracle Or One ... - DBA Stack Exchange
Yes, it makes sense to have one instance with multiple schemas/users (one per application, or whatever else).
Read more >Define one JSON schema for two nearly the same instances
I have 2 very similar JSON objects:
Read more >I have problem with two schemas on the same instance
I created 2 schemas in the same instance xe. They all have the same tables names and sequences names and stored procedures and...
Read more >Multiple Schema Examples - Vertica
Multiple Schema Examples. This section provides examples of when and how you might want to use multiple schemas to separate database users.
Read more >Why would I have two database instances, instead of ... - Quora
There are different use cases for each. A typical use case for db with multiple schemas is when you want to group objects...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bukhalo don’t use
type-graphql
, author doesn’t accept any contribution and wants money for work ¯_(ツ)_/¯Let’s track this here https://github.com/nestjs/graphql/issues/721