Skip to main content

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
19 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
13 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
18 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
9 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
0 votes
0 answers
29 views

Prisma client table names generated from introspect have mismatching case

I have a sql server database with all tables in upper snake case (e.g., APPLICATION_USER). I ran npx prisma db pull and it generated the prisma schema as expected (table names in schema.prisma are all ...
Joe's user avatar
  • 367
0 votes
1 answer
26 views
+50

Updating or creating table in Prisma using upsert

I have a Notifications model in my primsa.schema model Notifications { id String @id @default(cuid()) userId String //@unique ???? does this attribute need to ...
DJ2's user avatar
  • 1,731
1 vote
0 answers
10 views

deployment error in my nexjs application with Prisma orm

during the deployment of my application on Vercel, at the construction stage, I receive the error shown in the attached image. I've also associated the package.json file. { "name": "...
faris's user avatar
  • 11
0 votes
0 answers
37 views

Docker Build Fails Due to Network Connectivity Issue with Prisma (EAI_AGAIN)

I am experiencing a network connectivity issue while building a Docker image for my Node.js project, which uses Express and Prisma ORM to communicate with a PostgreSQL database. The error occurs ...
Rahul Barman's user avatar
0 votes
1 answer
17 views

I'm trying to make an API request from my react native app. In isolation, the api works with the correct authToken but doesn't in my react-native app

Whenever I run it on my web browser, I get an error that says "Uncaught error. Failed to fetch" Here's the code that causes the problem. useEffect(() => { const fetchTweets = ...
Efojensen's user avatar
-1 votes
2 answers
33 views

Can't get Id in the correct format from URL while making a get request with c.req.param('id') [closed]

So i am building backend of a blog application and almost every other route is working just fine but for some reason route blogRouter.get('/:id') is not (This route is suppose to return blog whose id ...
TheCoder001's user avatar
0 votes
0 answers
8 views

'npx prisma db push' is not doing any acton in local nextjs app to the superbase server

I am working on a NextJS 14 project in my local, where I am using postgres sql from superbase for data storage. I was able to connect to postgres and make requests, but after break of few months when ...
S.tab's user avatar
  • 3
0 votes
0 answers
6 views

Cleaner Way to Write Prisma Schema for Badge System

I'm working on a badge system for my web app and would appreciate any suggestions for cleaning up this Prisma schema datasource db { provider = "mongodb" url = env("...
loona's user avatar
  • 1
0 votes
0 answers
4 views

Searchbar API: i need to create search bar api in which data will get from database user record by using name, email or number

i am learning backend, new to express framework and having difficult creating search bar api, i am using typescript, express.js with prisma & postgresql with db client Dbeaver, help me out how to ...
Ashar Ul haq's user avatar
0 votes
0 answers
7 views

Unable to migrate Prisma

Actually I am learning prisma and using postgresql for the same and my database provider is neon db so when i am trying to migrate my prisma file it is giving me a error and therefore i tried changing ...
Vineet Singh's user avatar

15 30 50 per page
1
2 3 4 5
257