Skip to content

Instantly share code, notes, and snippets.

@kerren
Created August 19, 2018 10:47
Show Gist options
  • Save kerren/78e6abdb6cc851895fbd862dc27d261d to your computer and use it in GitHub Desktop.
Save kerren/78e6abdb6cc851895fbd862dc27d261d to your computer and use it in GitHub Desktop.
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { User } from 'modules/shared/entities/user.entity';
import { Repository } from 'typeorm';
@Injectable()
export class UserService {
constructor(
@InjectRepository(User)
private readonly userRepository: Repository<User>
) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment