question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated schemas for multiple instances are same

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Fyzucommented, Aug 18, 2019

@bukhalo don’t use type-graphql, author doesn’t accept any contribution and wants money for work ¯_(ツ)_/¯

1reaction
kamilmysliwieccommented, Apr 16, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found