API with NestJS #136. Raw SQL queries with Prisma and PostgreSQL range types
Briefly

Sometimes, when working with our database, we might want to represent a range of values. For example, we might want to define a set of available dates. One way would be to create two columns that hold the bound values.
Since Prisma does not support range types, we need to use raw SQL and define the range type in the schema manually. Prisma will still be able to generate a correct migration for the range type column in PostgreSQL.
Read at Marcin Wanago Blog - JavaScript, both frontend and backend
[
|
]