Skip to content

Commit

Permalink
fix: add overrides for specific repos
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-bechara committed Jul 1, 2021
1 parent 706a688 commit 3d6cf42
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 33 deletions.
15 changes: 1 addition & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ If not, please refer to documentation above before proceeding.
npm i @bechara/nestjs-orm
```

Followed by the corresponding driver of your database type:

```
npm i @mikro-orm/mongodb
npm i @mikro-orm/mysql
npm i @mikro-orm/mariadb
npm i @mikro-orm/postgresql
npm i @mikro-orm/sqlite
```


2\. Add these example variables to your `.env` (adjust accordingly):

```
Expand Down Expand Up @@ -101,9 +90,7 @@ Then, you should call its super method passing this instance as well as an optio
Example:

```ts
import { OrmService } from '@bechara/nestjs-orm';
import { EntityRepository } from '@mikro-orm/core';
import { InjectRepository } from '@mikro-orm/nestjs';
import { OrmService, EntityRepository, InjectRepository } from '@bechara/nestjs-orm';
import { Injectable } from '@bechara/nestjs-core';

// This entity is whatever you defined in the previous step
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
},
"dependencies": {
"@mikro-orm/core": "4.5.7",
"@mikro-orm/mongodb": "4.5.7",
"@mikro-orm/mysql": "4.5.7",
"@mikro-orm/nestjs": "4.2.0",
"@mikro-orm/postgresql": "4.5.7",
"class-transformer": "0.4.0",
"class-validator": "0.13.1",
"flat": "5.0.2",
Expand Down
Loading

0 comments on commit 3d6cf42

Please sign in to comment.