Last active
June 19, 2019 03:50
-
-
Save chnirt/a778071d5df5209c69093ac01e9298c4 to your computer and use it in GitHub Desktop.
NestJs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common'; | |
import { UserResolver } from './user.resolver'; | |
import { UserService } from './user.service'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { User } from './user.entity'; | |
@Module({ | |
imports: [TypeOrmModule.forFeature([User])], | |
providers: [UserResolver, UserService], | |
}) | |
export class UserModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment