Martin Šošić
04/11/2022, 11:57 AM<http://prisma.io|prisma.io>
webpage that I try to open -> just wanted to check, are you aware of this (or is this maybe happening just on my side?)Muhammad Ahmad
04/11/2022, 1:07 PMmodel Profile {
id String @id @default(cuid())
name String
address String
image blob
created_at DateTime @default(now())
updated_at DateTime @updatedAt
}
model Token {
id String @id @default(cuid())
profile_id Profile[]
featured_status Boolean
category String
file blob
description String
info String
type String
last_selling_price Float
ownership_chain String
created_at DateTime @default(now())
updated_at DateTime @updatedAt
}
Hello I am trying to add one to many relation (one profile can have many tokens) but I think this isn't correct. Also code editor giving me red lines on blob type and bytea for storing images.Jeremiah
04/11/2022, 7:11 PMXOR<UserCreateInput,
UserUncheckedCreateInput>
I'm wondering what the Unchecked means, what the difference between these two types is, and how Prisma decides which one to use when executing a Create mutation.Alex Cavazos
04/11/2022, 8:59 PMDockerfile
for a Next.js 12
application that gets built with Docker and uses Prisma? I am not sure at what point to run npx prisma generate
. I tried right before the npm run build
step but I get Error: Unknown binaryTarget linux-arm64-openssl-undefined and no custom binaries were provided
Gurudev sharma
04/11/2022, 9:01 PMGurudev sharma
04/11/2022, 9:01 PMGurudev sharma
04/11/2022, 9:01 PMGurudev sharma
04/11/2022, 9:01 PMLuís Felipe
04/11/2022, 11:57 PMRichard Ku
04/12/2022, 12:52 AMTimotius Anrez
04/12/2022, 8:06 AMDog
04/12/2022, 8:39 AMHwanseok Yu
04/12/2022, 9:28 AMyarn workspace
and import Prisma Client
from api
package to front-end
package because of next-auth
. But, when I run it, Prisma Client
try to get schema from front-end
package. If I understand this issue correctly, I should use @dev
version, right?Marius
04/12/2022, 11:21 AMSoumyajit
04/12/2022, 12:42 PMError: P1000
while the @prisma/client
is able to connect with the same .env values.
Anyone else faced this issue? Any pointers as to what can fix it?Omar
04/12/2022, 1:22 PMJohn Smeeth
04/12/2022, 1:52 PMJohn Smeeth
04/12/2022, 1:54 PMimport { Prisma } from '@prisma/client'
but I got this error
What wrong with me?John Smeeth
04/12/2022, 1:55 PMDog
04/12/2022, 3:04 PMJonas
04/12/2022, 6:13 PMJacob Coker-Dukowitz
04/12/2022, 8:27 PMdb/generated/client
, prisma works fine.
However, when I try to keep the client in its default location in node_modules
, I get this error:
(node:56637) UnhandledPromiseRejectionWarning: Error: Unable to load Node-API Library from node_modules/.prisma/client/libquery_engine-darwin.dylib.node, Library may be corrupt
Any thoughts?
The only related thing I can find online (unsupported node version), and in this slack thread (prisma not supported in M1) seem unrelated, as I'm using Node v 12.16.0 on a MacBook Pro, with Prisma v3.9.1 (and the client works fine when in a different location).
Anyone able to help me understand whats happening?TK Aloufi
04/12/2022, 9:11 PMnpx prisma migrate dev
and
npx prisma migrate
Hwanseok Yu
04/13/2022, 3:40 AMprisma@3.12.0
, but still have trouble with prisma client in yarn workspace.
// .../my-app/packages/web/pages/api/auth/[...nextauth].ts
...
import { PrismaClient } from "@my-app/prisma";
const prisma = new PrismaClient();
...
when I run it, it throw error
Error: ENOENT: no such file or directory, open '.../my-app/packages/web/.next/server/pages/api/auth/schema.prisma'
How can I fix it?Ethan Phan
04/13/2022, 4:07 AMJohn Smeeth
04/13/2022, 4:43 AMconst prisma = new PrismaClient()
and connect to portgres on GCP, but I got error in connection in job as below
Error in connector: Error querying the database: db error: FATAL: remaining connection slots are reserved for non-replication superuser connections
How can I manage connection to database efficient to avoid get many connection? thank youChip Clark
04/13/2022, 5:13 AMJulien Demarque
04/13/2022, 8:26 AMMathie
04/13/2022, 9:31 AMMathie
04/13/2022, 12:05 PM