June 2025
Intermediate to advanced
837 pages
24h 50m
English
To this point, you only store the information locally in your application, which means all changes will be lost when the process is restarted. This problem can be solved with databases, as you’ve already seen in Chapter 8. Nest provides for a rather convenient solution here as well, in that the framework provides you with direct integration of TypeORM into your application via the @nestjs/typeorm package.
First, you need a database instance for your application. TypeORM supports a whole range of databases such as MySQL, PostgresSQL, and SQLite, but also MongoDB. For our example, we’ll use a MySQL database running in a Docker container. Listing 14.16 shows the contents of the initDB.sql ...
Read now
Unlock full access