Skip to content

Commit 875b9c0

Browse files
Merge pull request #2250 from micalevisk/patch-1
docs(sql): enforce usage of typeorm 0.2, not the latest
2 parents dadf171 + 7ceaf23 commit 875b9c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/techniques/sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ For integrating with SQL and NoSQL databases, Nest provides the `@nestjs/typeorm
1313
To begin using it, we first install the required dependencies. In this chapter, we'll demonstrate using the popular [MySQL](https://www.mysql.com/) Relational DBMS, but TypeORM provides support for many relational databases, such as PostgreSQL, Oracle, Microsoft SQL Server, SQLite, and even NoSQL databases like MongoDB. The procedure we walk through in this chapter will be the same for any database supported by TypeORM. You'll simply need to install the associated client API libraries for your selected database.
1414

1515
```bash
16-
$ npm install --save @nestjs/typeorm typeorm mysql2
16+
$ npm install --save @nestjs/typeorm typeorm@0.2 mysql2
1717
```
1818

19+
> warning **Warning** Note that we're using TypeORM v0.2, which isn't the latest version of TypeORM. The latter has substantial modifications and duplicate methods which are used on this page. You can read about `[email protected]` changes [on their repository](https://github.com/typeorm/typeorm/releases/tag/0.3.0).
20+
1921
Once the installation process is complete, we can import the `TypeOrmModule` into the root `AppModule`.
2022

2123
```typescript

0 commit comments

Comments
 (0)