Skip to content

Instantly share code, notes, and snippets.

@hzburki
Created July 14, 2019 15:08
Show Gist options
  • Save hzburki/4d1a22c3cb2179f850425700c94135b3 to your computer and use it in GitHub Desktop.
Save hzburki/4d1a22c3cb2179f850425700c94135b3 to your computer and use it in GitHub Desktop.
Exporting user entity model so it can be injected into NestJS services - NestJS SequelizeJS
import { User } from './user.entity';
import { USER_REPOSITORY } from '../utils/constants';
export const userProviders = [
{
provide: USER_REPOSITORY,
useValue: User,
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment