Questions tagged [prisma]
Prisma is a next-generation Node.js and TypeScript ORM for PostgreSQL, MySQL, SQLite, CockroachDB, MongoDB and SQL Server.
prisma
3,843
questions
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 ...
-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 ...
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 ...
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 ...
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 ...
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 ...
-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 ...
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 ...
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", ...
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 ...
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 ...
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;...
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 ...
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 ...
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, ...