-
Notifications
You must be signed in to change notification settings - Fork 398
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
Generated schemas for multiple instances are same #205
Comments
This cannot be fixed until the metadata collection logic has been rewritten in |
Started working on it there MichalLytek/type-graphql#304 |
Facing the same Issue. |
@Fyzu maybe you have a temporary workaround until the type-graphql author solves the problem? |
@bukhalo don't use |
Only 37 merged PRs ¯_(ツ)_/¯
How the open source developers dare to want money for maintaining the open source project that many companies uses! Scandal! 🙈 As I said in that issue, I can't accept a PR with a complete rewrite of the core done by an external contributor. And as I'm preparing a complete rewrite with monorepo, I won't double my work to rewrite the pipeline now and then rewrite again e.g. to add proper plugins support. For now you can use your fork and publish it on npm as |
25 of them are about documentation
what a problem, to let community contribute to project? many devs wanna use and move forward projects like that, without "donate money", only "donate" their own time |
So 37-25 = 12 PR of features -> "doesn't accept any contribution"? 😄
There are 6 issues that are open for help but nobody wants to make a PR 😞 I will reverse your question: If you think that TypeGraphQL is overrated, there are plenty similar project that you can contribute too if you don't want your own OSS project:
@bukhalo It's tracked by #110 - you need to have imports separation in your app and run two node processes: |
its work for me, just add validation rule to GqlModuleOptions: resolverValidationOptions: {
allowResolversNotInSchema: true,
} full example: const GRAPHQL_OPTIONS: GqlModuleOptions = {
debug: true,
playground: true,
tracing: true,
introspection: true,
installSubscriptionHandlers: true,
resolverValidationOptions: {
allowResolversNotInSchema: true,
},
context: ({ req }) => ({ req }),
};
@Module({
imports: [
GraphQLModule.forRootAsync({
imports: [ConfigModule, ResolverModule1, ResolverModule2],
useFactory: async (configService: ConfigService) => ({
path: configService.find('GRAPHQL_ADMIN_PATH') || GRAPHQL_ADMIN_PATH,
typePaths: [GRAPHQL_TYPE_ADMIN_PATH],
...GRAPHQL_OPTIONS,
}),
inject: [ConfigService],
}),
GraphQLModule.forRootAsync({
imports: [ConfigModule, ResolverModule3, ResolverModule4],
useFactory: async (configService: ConfigService) => ({
path: configService.find('GRAPHQL_PATH') || GRAPHQL_PATH,
typePaths: [GRAPHQL_TYPE_PATH],
...GRAPHQL_OPTIONS,
}),
inject: [ConfigService],
}),
TypeORMModule,
],
})
export class AppModule {} |
Let's track this here #721 |
I'm submitting a...
Current behavior
I'm using multiple GraphQL instances with code first pattern.
Example:
It will generate same schemas, include all resolvers and types in project.
Expected behavior
Generated schemas include only declared modules.
Environment
The text was updated successfully, but these errors were encountered: