-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
needs triageThis issue has not been looked intoThis issue has not been looked into
Description
how to have multiple graphql module with different path with code first approach ... I think when autoSchemaFile is true they search all of project files and produce the schema graphql and when we have another graphql module we get error because it want to generate again the schema ... I use include but it is not work fine for autoSchemaFile instead include it use all of modules .. and it is wrong
import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { UserResolver } from './user.resolver';
@Module({
imports: [
GraphQLModule.forRoot({
autoSchemaFile: 'schema-user.gql',
include: [UserModule], // Only include this module for schema generation
// but it is not work and generate all of modules entire project
}),
],
providers: [UserResolver],
})
export class UserModule {}
why ??? how can I fix it ??? thanks
ikaaasra
Metadata
Metadata
Assignees
Labels
needs triageThis issue has not been looked intoThis issue has not been looked into