Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [prisma]

Prisma is a next-generation Node.js and TypeScript ORM for PostgreSQL, MySQL, SQLite, CockroachDB, MongoDB and SQL Server.

0 votes
0 answers
8 views

Heroku Prisma Error occurred during query execution after commit

I'm developing an app using NestJs + Ionic stack. I'm using Heroku to deploy my Nest app and Supabase for Postgres database. Everything was working just fine for past several days, but today I faced ...
kacper43's user avatar
-1 votes
0 answers
13 views

Having issues with a messenger clone

So everything was working fine until I decided to add a header component to my messenger clone.This specific problem has returned null and crashed my application like 5-6 times. Can anyone help why ...
Suj K's user avatar
  • 1
0 votes
0 answers
11 views

Prisma client : the provided database credentials for `(not available)` are not valid

I am using prisma version 5.17.0 in my Nextjs application. When using the prisma studio using npx prisma studio the database is authenticated and connected successfully and I can see the usage on the ...
Nabin Paudyal's user avatar
0 votes
0 answers
22 views

Return 403 forbidden in production env

I have issue when try to perform the api in production environment, but it works it my staging environment. This is my code for the api import prisma from '../../../prisma/db'; export default async ...
user26509362's user avatar
0 votes
0 answers
13 views

How to Upsert Nested Relations in Prisma, using connectOrCreate? connectOrCreate doesn't update deeply nested relation

I'm working on an application using Prisma ORM with a schema that includes Profile, Contact, and SocialMedia models. I need to perform an update operation on a Profile, which should also handle ...
Jakub Kanna's user avatar
0 votes
0 answers
16 views

PrismaClientInitializationError: Can't reach database server

I'm unable to get the site running and connect to the database. I keep getting this error whenever I do npm run dev. I have even attempted to set connect_timeout to 1 and pool_timeout to 0, pgbouncer ...
Ahmed B's user avatar
  • 49
-1 votes
0 answers
19 views

Error when deploying fly.io app - Error: Could not find a schema.prisma file

Link to repo - https://github.com/kodaneflash/solofoundershub.com Nothing in the code is incorrect, this is a clone of a repostiroy kentcdodds.com, it has to do with the setup. This is a remix vite ...
James's user avatar
  • 1
0 votes
0 answers
14 views

Trouble using equals in prisma with number type

I have this model model Model { id Int @id @default(autoincrement()) clientNumber Int And I want to execute an update where the clientNumber is in an Array ...
sevila's user avatar
  • 56
0 votes
2 answers
30 views

Error: P1000: Authentication failed against database server at `localhost`, the provided database credentials for `postgres` are not valid

api git:(main) ✗ pnpm prisma migrate dev Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Datasource "db": PostgreSQL database "postgres", ...
Jaskaran Singh's user avatar
0 votes
0 answers
23 views

Nextjs and prisma: TypeError: Unknown file extension ".ts"

I am starting on the Nextjs world and i wanted to try the prisma ORM but i'm facing some errors. So basicaly other thing what i am in doubt here is the fact that prior this erros i was getting another ...
João Marcos's user avatar
0 votes
0 answers
22 views

Why won't my next.js credentials login with email and password work while my google provider authentication does?

I am trying to make a login page with Next Auth V4, and I have followed some instructions online that seems to work well for the google provider which works, but my "credentials" email and ...
The Elina's user avatar
0 votes
0 answers
19 views

I am developing a community page using Next.js and Socket. How can I use socket to support sending and receiving images, videos, audio, and documents

i have implemented the functionality of the send image like this using socket.io here is my code block of that. socket.on("send-image", async (data) => { const { image, room } = data;...
Arnav Sharma's user avatar
0 votes
0 answers
27 views

Mongodb connection string error with VScode

I am trying to connect my .prisma file to my mongo db database but i got a p1013 error. It says the provided database string is invalid. I tried everything from changing the database password to ...
user26411049's user avatar
0 votes
1 answer
21 views

I can find and update records, but not create them using Prisma and Nextjs

My provider is sqlserver and I am connecting to an existing database. I followed the steps in the docs to connect and use npx prisma db pull to introspect. The schema was updated successfully, and ...
wiljago's user avatar
  • 147
1 vote
0 answers
12 views

getting prisma types into jsdoc and shown in docdash

im trying to build some api docs with jsdoc and docdash. im importing types from prisma into my jsdox types and thats working fine. what i cant get to work: getting the prisma types to show up, ...
Jared Myhrberg's user avatar

15 30 50 per page
1
2 3 4 5
257