profile: create module structure
This commit is contained in:
1 parent
a41cb50128
commit
67542ec94c
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 { AppController } from './app.controller.js';
|
||||||
import { AppService } from './app.service.js';
|
import { AppService } from './app.service.js';
|
||||||
|
import { ProfileModule } from './profile/profile.module.js';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -23,6 +24,7 @@ import { AppService } from './app.service.js';
|
|||||||
playground: false,
|
playground: false,
|
||||||
plugins: [ApolloServerPluginLandingPageLocalDefault()],
|
plugins: [ApolloServerPluginLandingPageLocalDefault()],
|
||||||
}),
|
}),
|
||||||
|
ProfileModule,
|
||||||
],
|
],
|
||||||
controllers: [AppController],
|
controllers: [AppController],
|
||||||
providers: [AppService],
|
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