Added Swagger and TypeORM, added Hello World
This commit is contained in:
@@ -3,19 +3,18 @@ import { AppController } from './app.controller';
|
||||
import { AppService } from './app.service';
|
||||
import { GraphQLModule } from '@nestjs/graphql';
|
||||
import { MercuriusDriver, MercuriusDriverConfig } from '@nestjs/mercurius';
|
||||
import { HelloResolver } from './hello.resolver';
|
||||
import { databaseProviders } from './database.providers';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
GraphQLModule.forRoot<MercuriusDriverConfig>({
|
||||
driver: MercuriusDriver,
|
||||
path: '/api/graphql',
|
||||
graphiql: true,
|
||||
autoSchemaFile: true
|
||||
} as MercuriusDriverConfig),
|
||||
],
|
||||
controllers: [AppController],
|
||||
providers: [AppService,HelloResolver],
|
||||
providers: [AppService, AppController, ...databaseProviders],
|
||||
|
||||
})
|
||||
export class AppModule {}
|
||||
|
||||
Reference in New Issue
Block a user