0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Nest.js その5 todos.module.ts

Posted at




todos.module.ts
todos.module.ts は NestJS の「モジュール(機能のかたまり)」を定義するファイル
Todo機能の入口(設定ファイル)みたいな役割

import { Module } from '@nestjs/common';
import { TodosController } from './todos.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TodosEntity } from 'src/entities/todos.entity';
import { TodosService } from './todos.service';
import { UsersEntity } from 'src/entities/users.entity';

@Module({
  imports: [TypeOrmModule.forFeature([TodosEntity,UsersEntity])],
  controllers: [TodosController],
  providers: [TodosService],
})
export class TodoModule {}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?