profile: create module structure
This commit is contained in:
1 parent
c973f1c052
commit
86b09a79e2
4 files changed
+18
No files matched your search
@@ -6,6 +6,7 @@ import { ApolloServerPluginLandingPageLocalDefault } from '@apollo/server/plugin
|
||||
|
||||
import { AppController } from './app.controller.js';
|
||||
import { AppService } from './app.service.js';
|
||||
import { ProfileModule } from './profile/profile.module.js';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -23,6 +24,7 @@ import { AppService } from './app.service.js';
|
||||
playground: false,
|
||||
plugins: [ApolloServerPluginLandingPageLocalDefault()],
|
||||
}),
|
||||
ProfileModule,
|
||||
],
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ProfileService } from './profile.service.js';
|
||||
import { ProfileResolver } from './profile.resolver.js';
|
||||
|
||||
@Module({
|
||||
providers: [ProfileService, ProfileResolver],
|
||||
})
|
||||
export class ProfileModule {}
|
||||
@@ -0,0 +1,4 @@
|
||||
import { Resolver } from '@nestjs/graphql';
|
||||
|
||||
@Resolver()
|
||||
export class ProfileResolver {}
|
||||
@@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class ProfileService {}
|
||||
Reference in new issue
Block a user