32 articles found.
Using a debugger with an application running locally on our machine is a great way to troubleshoot. Unfortunately, we can’t do that with a deployed app. To be…
So far, in this series, we’ve been using TypeORM to manage our data and connect to our Postgres database. In this article, we look into Prisma, which is a…
Filtering records is one of the essential skills to have when working with SQL databases. In this article, we’ll implement various examples using NestJS and…
When we work with SQL databases, we usually create tables that relate to each other in some way. Managing those relationships is one of the most fundamental…
One of the characteristics of relational databases is a strict data structure. We need to specify the shape of every table with its fields, indexes, and…
As web developers, one of our primary concerns is keeping the integrity of our data. Fortunately, SQL databases come equipped with tools that allow us to…
In the previous part of this series, we learned how to write unit tests in a NestJS project with Prisma. Unit tests help verify if individual components of our…
PostgreSQL allows us to filter a query’s results and ensure we don’t get duplicate rows. This can be helpful when your table has many rows where the data in…
While Prisma gradually adds various features, PostgreSQL still has a lot of functionalities that Prisma does not support yet. One of them is range types. In…
When fetching data from the database, we do not always want to present it to the user in the original form. When working with NestJS, the most popular way of…
One of the most important aspects of working with a database is ensuring the stored information is correct. One of the fundamental ways of doing that is by…
PostgreSQL stands out as a feature-reach solution among other relational databases. Most of the column types available in PostgreSQL allow storing a single…
Storing date and time in our database might be tricky, but it is essential to get it right. In this article, we tackle this issue using PostgreSQL and Prisma.…
When developing our REST APIs, we often focus on implementing the four fundamental operations: creating, reading, updating, and deleting (CRUD). The most basic…
Covering our NestJS application with unit tests can help us create a reliable product. In this article, we introduce the idea behind unit tests and implement…
As applications grow, the number of different entities also increases. A crucial part of learning how to design a database is creating relationships between…
Often, we might have a situation where a single entity, such as a comment, needs to be associated with more than one type of table. For example, the user might…
In PostgreSQL, schemas act as namespaces within the database and are containers for objects such as tables and indexes. In this article, we explain how they…
We can learn much about how users use our app by looking at our database. With this information, we can improve the experience of the users of our application.…
The bigger our database, the more we need to care about the performance. Returning too much data at once through our API might not be the best approach when it…
The bigger our database, the more we need to care about its performance. A common way of improving it is through indexes. Therefore, this article introduces…
Node.js Digest #25 by Oleksandr Zinevych
Each record in our database should have a unique identifier. Typically, we use a numerical sequence to generate them. However, we can use an alternative…
Database normalization is a common topic in database design discussions. However, it’s usually explained using complicated terms, making it hard to understand.…
Relational databases such as PostgreSQL are great for storing structured data. This approach has many advantages, but it can lack flexibility. On the other…
A foreign key is a column that connects two tables. A constraint keeps this connection in check, and PostgreSQL ensures the foreign keys point to the correct…
Developing a REST API requires us to create endpoints using various HTTP methods such as GET, POST, and DELETE. People utilizing our API expect that making a…
Managing money is a part of developing web applications that we can’t cut corners on. This article explores various data types built into PostgreSQL and Prisma…
Node.js Digest #16 by Oleksandr Zinevych
Object-Relational Mapping (ORM) libraries such as Prisma and TypeORM can help us produce code faster by avoiding writing SQL queries. They have a smaller…
The integrity of our data should be one of the primary concerns of web developers. Thankfully, SQL databases equip us with tools that we can use to ensure the…
Most of our SQL tables contain the ID column, which acts as a primary key and uniquely identifies each row. Historically, the most common way of defining them…