prisma Questions
6
Solved
I've updated Nextjs to it's newest version and also updated next-auth and the prisma adapter as specified by the docs.
However, when I try to authenticate in the app with signIn I get the following...
4
I use Prisma as an ORM and had to change remove some columns and add others. I've already updated the database with the new columns and recreated the prisma schema but the problem is that now every...
Kozlowski asked 28/4, 2022 at 12:22
5
Solved
Hi everyone I am getting this error "'prisma' is not recognized as an internal or external command, operable program or batch file." while running prisma login command in cmd I have installed the p...
Gustafsson asked 24/1, 2019 at 9:30
4
Solved
Problem
I am only using a single CredentialsProvider in next-auth but I'm confused about how to handle async authorize() with a custom user interface.
I defined the user interface in types/next-aut...
Venetis asked 16/10, 2022 at 18:21
7
I use next.js typescript,next-auth,prisma,mangodb and I got this error:
TypeError: "ikm"" must be an instance of Uint8Array or a string in vscode
And I got these 2 errors in consol...
1
Goal
I'm trying to make a minimal Express app. It has a single endpoint /users that either GETs all users in a Postgres database, or POSTs a new user. I'm trying to use Prisma as an ORM and run eve...
Semiconscious asked 6/4, 2023 at 23:53
5
I'm trying to fetch data from database and this is my prisma model:
model instant_reports {
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
created_at DateTime?
updated_at DateTime?
...
6
in package.json, I've added the following lines:
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
}
and...
Ironlike asked 28/5, 2022 at 7:45
8
Whenever I've try to use @supabase/supabase-js to query the db, I get an error.
error: {
hint: null,
details: null,
code: '42501',
message: 'permission denied for schema public'
}
I think it h...
Masticatory asked 15/5, 2021 at 22:3
4
Solved
This is more a design question than a coding question. Suppose the following schema:
// schema.prisma
// Solution 1
model Entity {
id Int @id @default(autoincrement())
attrs EntityAttr[]
}
mod...
Oldcastle asked 17/9, 2021 at 14:11
2
Solved
I want to manually create an object of my Prisma schema
const order: Order = {
id: '1',
name: 'Name',
price: 99
}
...
// Somewhere in autogenerated file by Prisma
export type Order = {
id: st...
Parliamentary asked 20/4, 2022 at 15:10
5
Prisma extension suddenly stopped formatting my schema.prisma with the proper indention. Below is the language server output after save.
[Trace - 4:05:26 AM] Sending request 'textDocument/formattin...
Maffa asked 4/9, 2022 at 22:51
4
Solved
I'm starting a project where I have to learn a new technology and I chose to build a full-stack app with Prisma and Next.js. I'm using both for the first time. I've built front-end apps w/ React.js...
Miyasawa asked 20/12, 2020 at 21:10
3
Solved
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 GraphQL API (my current API uses apollo-s...
Drink asked 15/3, 2021 at 22:16
1
Is there a difference between these two queries?
this._client.myTable.findMany({
where: {
NOT: {
myColumn: null
}
}
})
and
this._client.myTable.findMany({
where: {
myColumn: {
not: null
}...
Kale asked 4/1, 2023 at 19:14
1
I have a working code below that inserts a data if it does not exist (but not updates if it exist). In below implementation I am looping upsert, and it just works fine.
My question is, how to get t...
Joachima asked 9/6, 2022 at 17:45
5
Solved
Is there any way I can solve this problem? I recently updated to Ubuntu 22.04
Getting the problem while using Prisma.I can't run my project. I have use "@prisma/client": "2.20.1"...
2
Solved
I want to use prisma on an existing database. Now that I'm researching it, I realise that all my tables and columns are incorrectly named. I would like to correct the names, but I don't want to los...
Slambang asked 24/3, 2022 at 14:16
2
I'm using Next.js and Prisma for my current project but in my IDE (WebStorm currently), I am constantly getting the same warning on most CRUD queries in Prisma.
This is only in JetBrains WebStorm h...
Warfarin asked 10/11, 2023 at 8:42
4
Solved
I'm using next auth v4 with next js 13 beta with server component, and everything works fine. But I have a situation where I will need to know the logged user id, since I'm using next auth, I have ...
2
Currently I am developing an api that provides data using prisma. This api gets used by multiple projects. In the api I generate types using Prisma.ModelGetPayload to define the return types of cer...
Gastrocnemius asked 26/9, 2022 at 10:35
5
Currently on my first NestJS project. I am using Prisma 2, and would like to log the queries to the console in debug mode, to learn and inspect and avoid n+1 etc!
I have created the prisma.service....
Octogenarian asked 12/5, 2021 at 18:29
7
I have a table called financial_transaction which have data like this:
id
debit
credit
financial_type
payment_id
payment
author_id
author
1
150
0
Payment
2
-
1
-
2
0
50
Payment
2
-
1
-
...
Autorotation asked 21/12, 2021 at 7:13
1
i have been working on this for a while and i can't even make it work. the issue is that i wanna pass a value to my server action for prisma from my state management context. but everytime i try to...
Arbuckle asked 1/1, 2024 at 17:21
11
As the title states, I am using Prisma 2 in a Next JS app. I have a very simple schema:
model User {
id Int @id @default(autoincrement())
firstName String
middleName String?
firstLastname Stri...
Godfry asked 11/1, 2021 at 8:8
© 2022 - 2025 — McMap. All rights reserved.