Skip to content

Instantly share code, notes, and snippets.

@chnirt
Last active June 19, 2019 03:50
Show Gist options
  • Save chnirt/a778071d5df5209c69093ac01e9298c4 to your computer and use it in GitHub Desktop.
Save chnirt/a778071d5df5209c69093ac01e9298c4 to your computer and use it in GitHub Desktop.
NestJs
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