Category "prisma"

How to handle conditional prepared statements using prisma and postgresql?

I have a search query that its parameters changes depending on the client input. await prisma.$queryRaw(`SELECT column FROM table ${condition ? `WHERE column =

Single instance Prisma client autocomplete not working

I have a single instance prisma but it's not auto-completing any queries. const { PrismaClient } = require("@prisma/client"); let prisma; if (process.env.NODE_E

How do I run Prisma migrations in a Dockerized GraphQL + Postgres setup?

I'm new to using Prisma as well as Dockerizing my setup. I would like to specify my data model using Prisma, have Postgres as my database and use that in a Grap

How to sort with nest order with Prisma

I have 2 table model Product { id name skus[] Sku } model Sku { id name price weight productId product Product } Data example: Product t

Using Prisma with Yarn v3

I am building an app using Next.js, Next-Auth, and Prisma. I am using API Routes for backend code. Recently, I upgraded Yarn on my pc to v3.1.1. I then created

deploying Prisma with Nuxt on heroku

I have spend several days now trying to figure out why my back-end is not working on the online version of my app. I created a Nuxt project that uses Prisma for

Prisma Issue of managing instances of Prisma Client actively running

I'm new to Prisma and Nodejs I accidentally created lots of instances of Prisma Client that keep displaying the warning of warn(prisma-client) There are already